다음을 통해 공유


Instrumentation.CallApplicationOnCreate(Application) Method

Definition

Perform calling of the application's Application#onCreate method.

[Android.Runtime.Register("callApplicationOnCreate", "(Landroid/app/Application;)V", "GetCallApplicationOnCreate_Landroid_app_Application_Handler")]
public virtual void CallApplicationOnCreate (Android.App.Application? app);
[<Android.Runtime.Register("callApplicationOnCreate", "(Landroid/app/Application;)V", "GetCallApplicationOnCreate_Landroid_app_Application_Handler")>]
abstract member CallApplicationOnCreate : Android.App.Application -> unit
override this.CallApplicationOnCreate : Android.App.Application -> unit

Parameters

app
Application

The application being created.

Attributes

Remarks

Perform calling of the application's Application#onCreate method. The default implementation simply calls through to that method.

Note: This method will be called immediately after #onCreate(Bundle). Often instrumentation tests start their test thread in onCreate(); you need to be careful of races between these. (Well between it and everything else, but let's start here.)

Java documentation for android.app.Instrumentation.callApplicationOnCreate(android.app.Application).

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