Android.App.Instrumentation.OnCreate Method
Called when the instrumentation is starting, before any application code has been loaded.

Syntax

[Android.Runtime.Register("onCreate", "(Landroid/os/Bundle;)V", "GetOnCreate_Landroid_os_Bundle_Handler")]
public virtual void OnCreate (Android.OS.Bundle arguments)

Parameters

arguments
Any additional arguments that were supplied when the instrumentation was started.

Remarks

Called when the instrumentation is starting, before any application code has been loaded. Usually this will be implemented to simply call Instrumentation.Start to begin the instrumentation thread, which will then continue execution in Instrumentation.OnStart.

If you do not need your own thread -- that is you are writing your instrumentation to be completely asynchronous (returning to the event loop so that the application can run), you can simply begin your instrumentation here, for example call Android.Content.Context.StartActivity(Android.Content.Intent) to begin the appropriate first activity of the application.

[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