Android.Test.Mock.MockContext.StartInstrumentation Method
Start executing an Android.App.Instrumentation class.

Syntax

[Android.Runtime.Register("startInstrumentation", "(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/Bundle;)Z", "GetStartInstrumentation_Landroid_content_ComponentName_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public override bool StartInstrumentation (Android.Content.ComponentName className, string profileFile, Android.OS.Bundle arguments)

Parameters

className
Name of the Instrumentation component to be run.
profileFile
Optional path to write profiling data as the instrumentation runs, or null for no profiling.
arguments
Additional optional arguments to pass to the instrumentation, or null.

Returns

Documentation for this section has not yet been entered.

Remarks

Start executing an Android.App.Instrumentation class. The given Instrumentation component will be run by killing its target application (if currently running), starting the target process, instantiating the instrumentation component, and then letting it drive the application.

This function is not synchronous -- it returns as soon as the instrumentation has started and while it is running.

Instrumentation is normally only allowed to run against a package that is either unsigned or signed with a signature that the the instrumentation package is also signed with (ensuring the target trusts the instrumentation).

[Android Documentation]

Requirements

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