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 benull. | 
| savedInstanceState | Bundle: This value may benull. | 
onActivityDestroyed
public abstract void onActivityDestroyed (Activity activity)
Called when the Activity calls super.onDestroy().
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityPaused
public abstract void onActivityPaused (Activity activity)
Called when the Activity calls super.onPause().
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
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 benull. | 
| savedInstanceState | Bundle: This value may benull. | 
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 benull. | 
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 benull. | 
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 benull. | 
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 benull. | 
| outState | Bundle: This value cannot benull. | 
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 benull. | 
onActivityPostStopped
public void onActivityPostStopped (Activity activity)
Called as the last step of the Activity being stopped. This is always called after
 Activity.onStop.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityPreCreated
public void onActivityPreCreated (Activity activity, Bundle savedInstanceState)
Called as the first step of the Activity being created. This is always called before
 Activity.onCreate.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
| savedInstanceState | Bundle: This value may benull. | 
onActivityPreDestroyed
public void onActivityPreDestroyed (Activity activity)
Called as the first step of the Activity being destroyed. This is always called before
 Activity.onDestroy.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityPrePaused
public void onActivityPrePaused (Activity activity)
Called as the first step of the Activity being paused. This is always called before
 Activity.onPause.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityPreResumed
public void onActivityPreResumed (Activity activity)
Called as the first step of the Activity being resumed. This is always called before
 Activity.onResume.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityPreSaveInstanceState
public void onActivityPreSaveInstanceState (Activity activity, Bundle outState)
Called as the first step of the Activity saving its instance state. This is always
 called before Activity.onSaveInstanceState.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
| outState | Bundle: This value cannot benull. | 
onActivityPreStarted
public void onActivityPreStarted (Activity activity)
Called as the first step of the Activity being started. This is always called before
 Activity.onStart.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityPreStopped
public void onActivityPreStopped (Activity activity)
Called as the first step of the Activity being stopped. This is always called before
 Activity.onStop.
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityResumed
public abstract void onActivityResumed (Activity activity)
Called when the Activity calls super.onResume().
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivitySaveInstanceState
public abstract void onActivitySaveInstanceState (Activity activity, Bundle outState)
Called when the Activity calls
 super.onSaveInstanceState().
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
| outState | Bundle: This value cannot benull. | 
onActivityStarted
public abstract void onActivityStarted (Activity activity)
Called when the Activity calls super.onStart().
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
onActivityStopped
public abstract void onActivityStopped (Activity activity)
Called when the Activity calls super.onStop().
| Parameters | |
|---|---|
| activity | Activity: This value cannot benull. | 
