Activity.Recreate Method

Definition

Cause this Activity to be recreated with a new instance.

[Android.Runtime.Register("recreate", "()V", "GetRecreateHandler")]
public virtual void Recreate ();
[<Android.Runtime.Register("recreate", "()V", "GetRecreateHandler")>]
abstract member Recreate : unit -> unit
override this.Recreate : unit -> unit
Attributes

Remarks

Cause this Activity to be recreated with a new instance. This results in essentially the same flow as when the Activity is created due to a configuration change -- the current instance will go through its lifecycle to #onDestroy and a new instance then created after it.

Java documentation for android.app.Activity.recreate().

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