Activity.OnPostCreate Method

Definition

Overloads

OnPostCreate(Bundle, PersistableBundle)

This is the same as #onPostCreate(Bundle) but is called for activities created with the attribute android.R.attr#persistableMode set to persistAcrossReboots.

OnPostCreate(Bundle)

Called when activity start-up is complete (after #onStart and #onRestoreInstanceState have been called).

OnPostCreate(Bundle, PersistableBundle)

This is the same as #onPostCreate(Bundle) but is called for activities created with the attribute android.R.attr#persistableMode set to persistAcrossReboots.

[Android.Runtime.Register("onPostCreate", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetOnPostCreate_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")]
public virtual void OnPostCreate (Android.OS.Bundle? savedInstanceState, Android.OS.PersistableBundle? persistentState);
[<Android.Runtime.Register("onPostCreate", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V", "GetOnPostCreate_Landroid_os_Bundle_Landroid_os_PersistableBundle_Handler")>]
abstract member OnPostCreate : Android.OS.Bundle * Android.OS.PersistableBundle -> unit
override this.OnPostCreate : Android.OS.Bundle * Android.OS.PersistableBundle -> unit

Parameters

savedInstanceState
Bundle

The data most recently supplied in #onSaveInstanceState

persistentState
PersistableBundle

The data caming from the PersistableBundle first saved in #onSaveInstanceState(Bundle, PersistableBundle).

Attributes

Remarks

This is the same as #onPostCreate(Bundle) but is called for activities created with the attribute android.R.attr#persistableMode set to persistAcrossReboots.

Java documentation for android.app.Activity.onPostCreate(android.os.Bundle, android.os.PersistableBundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

OnPostCreate(Bundle)

Called when activity start-up is complete (after #onStart and #onRestoreInstanceState have been called).

[Android.Runtime.Register("onPostCreate", "(Landroid/os/Bundle;)V", "GetOnPostCreate_Landroid_os_Bundle_Handler")]
protected virtual void OnPostCreate (Android.OS.Bundle? savedInstanceState);
[<Android.Runtime.Register("onPostCreate", "(Landroid/os/Bundle;)V", "GetOnPostCreate_Landroid_os_Bundle_Handler")>]
abstract member OnPostCreate : Android.OS.Bundle -> unit
override this.OnPostCreate : Android.OS.Bundle -> unit

Parameters

savedInstanceState
Bundle

If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in #onSaveInstanceState. <b>Note: Otherwise it is null.</b>

Attributes

Remarks

Called when activity start-up is complete (after #onStart and #onRestoreInstanceState have been called). Applications will generally not implement this method; it is intended for system classes to do final initialization after application code has run.

<em>Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.</em>

Java documentation for android.app.Activity.onPostCreate(android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to