Compartir a través de


Dialog.OnCreate(Bundle) Method

Definition

Similar to Activity#onCreate, you should initialize your dialog in this method, including calling #setContentView.

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

Parameters

savedInstanceState
Bundle

If this dialog is being reinitialized 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.

Attributes

Remarks

Similar to Activity#onCreate, you should initialize your dialog in this method, including calling #setContentView.

Java documentation for android.app.Dialog.onCreate(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.

Applies to