Android Guides | Samples

Android.App.Application.OnCreate Method

Called when the application is starting, before any activity, service, or receiver objects (excluding content providers) have been created.

Syntax

[Android.Runtime.Register("onCreate", "()V", "GetOnCreateHandler")]
public virtual void OnCreate ()

Remarks

Called when the application is starting, before any activity, service, or receiver objects (excluding content providers) have been created. Implementations should be as quick as possible (for example using lazy initialization of state) since the time spent in this function directly impacts the performance of starting the first activity, service, or receiver in a process. If you override this method, be sure to call super.onCreate().

[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