Android Guides | Samples

Android.App.Activity.OnResume Method

Called after Activity.OnRestoreInstanceState(Bundle), Activity.OnRestart, or Activity.OnPause, for your activity to start interacting with the user.

Syntax

[Android.Runtime.Register("onResume", "()V", "GetOnResumeHandler")]
protected virtual Void OnResume ()

See Also

Remarks

Called after Activity.OnRestoreInstanceState(Bundle), Activity.OnRestart, or Activity.OnPause, for your activity to start interacting with the user. This is a good place to begin animations, open exclusive-access devices (such as the camera), etc.

Keep in mind that onResume is not the best indicator that your activity is visible to the user; a system window such as the keyguard may be in front. Use Activity.OnWindowFocusChanged(Boolean) to know for certain that your activity is visible to the user (for example, to resume a game).

Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.

[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