Android Guides | Samples

Android.App.Dialog.OnCreate Method

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

Syntax

[Android.Runtime.Register("onCreate", "(Landroid/os/Bundle;)V", "GetOnCreate_Landroid_os_Bundle_Handler")]
protected virtual Void OnCreate (Bundle savedInstanceState)

Parameters

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

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1