Dialog.OnCreate(Bundle) Dialog.OnCreate(Bundle) Method


Similar to OnCreate(Bundle), you should initialize your dialog in this method, including calling SetContentView(View).

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


Bundle Bundle

If this dialog is being reinitalized after a the hosting activity was previously shut down, holds the result from the most recent call to OnSaveInstanceState(), or null if this is the first time.


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.

Applies to