This exception may be thrown on any method for which Activity context is accessed and indicates that ongoing work within the Activity is not possible.
This exception is thrown by a container if Activity context is not received on a method for which Activity context is mandatory.
This exception may be thrown on any method for which Activity context is accessed and indicates that the attempted invocation or the Activity context associated with the attempted invocation is incompatible with the Activity's current state.
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.