Application.ActivityLifecycleCallbacks
public
static
interface
Application.ActivityLifecycleCallbacks
| android.app.Application.ActivityLifecycleCallbacks |
Summary
Public methods | |
|---|---|
abstract
void
|
onActivityCreated(Activity activity, Bundle savedInstanceState)
Called when the Activity calls |
abstract
void
|
onActivityDestroyed(Activity activity)
Called when the Activity calls |
abstract
void
|
onActivityPaused(Activity activity)
Called when the Activity calls |
default
void
|
onActivityPostCreated(Activity activity, Bundle savedInstanceState)
Called as the last step of the Activity being created. |
default
void
|
onActivityPostDestroyed(Activity activity)
Called as the last step of the Activity being destroyed. |
default
void
|
onActivityPostPaused(Activity activity)
Called as the last step of the Activity being paused. |
default
void
|
onActivityPostResumed(Activity activity)
Called as the last step of the Activity being resumed. |
default
void
|
onActivityPostSaveInstanceState(Activity activity, Bundle outState)
Called as the last step of the Activity saving its instance state. |
default
void
|
onActivityPostStarted(Activity activity)
Called as the last step of the Activity being started. |
default
void
|
onActivityPostStopped(Activity activity)
Called as the last step of the Activity being stopped. |
default
void
|
onActivityPreCreated(Activity activity, Bundle savedInstanceState)
Called as the first step of the Activity being created. |
default
void
|
onActivityPreDestroyed(Activity activity)
Called as the first step of the Activity being destroyed. |
default
void
|
onActivityPrePaused(Activity activity)
Called as the first step of the Activity being paused. |
default
void
|
onActivityPreResumed(Activity activity)
Called as the first step of the Activity being resumed. |
default
void
|
onActivityPreSaveInstanceState(Activity activity, Bundle outState)
Called as the first step of the Activity saving its instance state. |
default
void
|
onActivityPreStarted(Activity activity)
Called as the first step of the Activity being started. |
default
void
|
onActivityPreStopped(Activity activity)
Called as the first step of the Activity being stopped. |
abstract
void
|
onActivityResumed(Activity activity)
Called when the Activity calls |
abstract
void
|
onActivitySaveInstanceState(Activity activity, Bundle outState)
Called when the Activity calls
|
abstract
void
|
onActivityStarted(Activity activity)
Called when the Activity calls |
abstract
void
|
onActivityStopped(Activity activity)
Called when the Activity calls |
Public methods
onActivityCreated
public abstract void onActivityCreated (Activity activity, Bundle savedInstanceState)
Called when the Activity calls super.onCreate().
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
savedInstanceState |
Bundle: This value may be null. |
onActivityDestroyed
public abstract void onActivityDestroyed (Activity activity)
Called when the Activity calls super.onDestroy().
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
onActivityPaused
public abstract void onActivityPaused (Activity activity)
Called when the Activity calls super.onPause().
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
onActivityPostCreated
public void onActivityPostCreated (Activity activity, Bundle savedInstanceState)
Called as the last step of the Activity being created. This is always called after
Activity.onCreate.
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
savedInstanceState |
Bundle: This value may be null. |
onActivityPostDestroyed
public void onActivityPostDestroyed (Activity activity)
Called as the last step of the Activity being destroyed. This is always called after
Activity.onDestroy.
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
onActivityPostPaused
public void onActivityPostPaused (Activity activity)
Called as the last step of the Activity being paused. This is always called after
Activity.onPause.
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
onActivityPostResumed
public void onActivityPostResumed (Activity activity)
Called as the last step of the Activity being resumed. This is always called after
Activity.onResume and Activity.onPostResume.
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
onActivityPostSaveInstanceState
public void onActivityPostSaveInstanceState (Activity activity, Bundle outState)
Called as the last step of the Activity saving its instance state. This is always
called afterActivity.onSaveInstanceState.
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |
outState |
Bundle: This value cannot be null. |
onActivityPostStarted
public void onActivityPostStarted (Activity activity)
Called as the last step of the Activity being started. This is always called after
Activity.onStart.
| Parameters | |
|---|---|
activity |
Activity: This value cannot be null. |