Activity.OnPostCreate Activity.OnPostCreate Method

Definition

Overloads

OnPostCreate(Bundle) OnPostCreate(Bundle)

Called when activity start-up is complete (after OnStart() and OnRestoreInstanceState(Bundle) have been called).

OnPostCreate(Bundle, PersistableBundle) OnPostCreate(Bundle, PersistableBundle)

This is the same as OnPostCreate(Bundle) but is called for activities created with the attribute PersistableMode set to persistAcrossReboots.

OnPostCreate(Bundle) OnPostCreate(Bundle)

Called when activity start-up is complete (after OnStart() and OnRestoreInstanceState(Bundle) have been called).

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

Parameters

savedInstanceState
Bundle 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(Bundle). Note: Otherwise it is null.

Remarks

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

OnPostCreate(Bundle, PersistableBundle) OnPostCreate(Bundle, PersistableBundle)

This is the same as OnPostCreate(Bundle) but is called for activities created with the attribute PersistableMode set to persistAcrossReboots.

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

Parameters

savedInstanceState
Bundle Bundle

The data most recently supplied in OnSaveInstanceState(Bundle)

persistentState
PersistableBundle PersistableBundle

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

Remarks

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