Language

Instrumentation.NewActivity メソッド

定義

オーバーロード

Name 説明
NewActivity(Class, Context, IBinder, Application, Intent, ActivityInfo, String, Activity, String, Object)

Activity オブジェクトのインスタンス化を実行します。

NewActivity(Class, Context, IBinder, Application, Intent, ActivityInfo, ICharSequence, Activity, String, Object)

Activity オブジェクトのインスタンス化を実行します。

NewActivity(ClassLoader, String, Intent)

プロセスの Activity オブジェクトのインスタンス化を実行します。

NewActivity(Class, Context, IBinder, Application, Intent, ActivityInfo, String, Activity, String, Object)

Activity オブジェクトのインスタンス化を実行します。

public Android.App.Activity? NewActivity(Java.Lang.Class? clazz, Android.Content.Context? context, Android.OS.IBinder? token, Android.App.Application? application, Android.Content.Intent? intent, Android.Content.PM.ActivityInfo? info, string? title, Android.App.Activity? parent, string? id, Java.Lang.Object? lastNonConfigurationInstance);
member this.NewActivity : Java.Lang.Class * Android.Content.Context * Android.OS.IBinder * Android.App.Application * Android.Content.Intent * Android.Content.PM.ActivityInfo * string * Android.App.Activity * string * Java.Lang.Object -> Android.App.Activity

パラメーター

clazz
Class

目的のアクティビティのクラス

context
Context

使用するアクティビティの基本コンテキスト

token
IBinder

このアクティビティが通信するためのトークン

application
Application

アプリケーション オブジェクト (存在する場合)

intent
Intent

このアクティビティを開始した意図

info
ActivityInfo

マニフェストからの ActivityInfo

title
String

タイトル (通常は ActivityInfo レコードから取得されます)

parent
Activity

親アクティビティ (存在する場合)

id
String

埋め込み ID (存在する場合)

lastNonConfigurationInstance
Object

Activity#getLastNonConfigurationInstance() Activity.getLastNonConfigurationInstance()経由で使用できる任意のオブジェクト。

返品

インスタンス化されたアクティビティを返します。

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NewActivity(Class, Context, IBinder, Application, Intent, ActivityInfo, ICharSequence, Activity, String, Object)

Activity オブジェクトのインスタンス化を実行します。

[Android.Runtime.Register("newActivity", "(Ljava/lang/Class;Landroid/content/Context;Landroid/os/IBinder;Landroid/app/Application;Landroid/content/Intent;Landroid/content/pm/ActivityInfo;Ljava/lang/CharSequence;Landroid/app/Activity;Ljava/lang/String;Ljava/lang/Object;)Landroid/app/Activity;", "GetNewActivity_Ljava_lang_Class_Landroid_content_Context_Landroid_os_IBinder_Landroid_app_Application_Landroid_content_Intent_Landroid_content_pm_ActivityInfo_Ljava_lang_CharSequence_Landroid_app_Activity_Ljava_lang_String_Ljava_lang_Object_Handler")]
public virtual Android.App.Activity? NewActivity(Java.Lang.Class? clazz, Android.Content.Context? context, Android.OS.IBinder? token, Android.App.Application? application, Android.Content.Intent? intent, Android.Content.PM.ActivityInfo? info, Java.Lang.ICharSequence? title, Android.App.Activity? parent, string? id, Java.Lang.Object? lastNonConfigurationInstance);
[<Android.Runtime.Register("newActivity", "(Ljava/lang/Class;Landroid/content/Context;Landroid/os/IBinder;Landroid/app/Application;Landroid/content/Intent;Landroid/content/pm/ActivityInfo;Ljava/lang/CharSequence;Landroid/app/Activity;Ljava/lang/String;Ljava/lang/Object;)Landroid/app/Activity;", "GetNewActivity_Ljava_lang_Class_Landroid_content_Context_Landroid_os_IBinder_Landroid_app_Application_Landroid_content_Intent_Landroid_content_pm_ActivityInfo_Ljava_lang_CharSequence_Landroid_app_Activity_Ljava_lang_String_Ljava_lang_Object_Handler")>]
abstract member NewActivity : Java.Lang.Class * Android.Content.Context * Android.OS.IBinder * Android.App.Application * Android.Content.Intent * Android.Content.PM.ActivityInfo * Java.Lang.ICharSequence * Android.App.Activity * string * Java.Lang.Object -> Android.App.Activity
override this.NewActivity : Java.Lang.Class * Android.Content.Context * Android.OS.IBinder * Android.App.Application * Android.Content.Intent * Android.Content.PM.ActivityInfo * Java.Lang.ICharSequence * Android.App.Activity * string * Java.Lang.Object -> Android.App.Activity

パラメーター

clazz
Class

目的のアクティビティのクラス

context
Context

使用するアクティビティの基本コンテキスト

token
IBinder

このアクティビティが通信するためのトークン

application
Application

アプリケーション オブジェクト (存在する場合)

intent
Intent

このアクティビティを開始した意図

info
ActivityInfo

マニフェストからの ActivityInfo

title
ICharSequence

タイトル (通常は ActivityInfo レコードから取得されます)

parent
Activity

親アクティビティ (存在する場合)

id
String

埋め込み ID (存在する場合)

lastNonConfigurationInstance
Object

Activity#getLastNonConfigurationInstance() Activity.getLastNonConfigurationInstance()経由で使用できる任意のオブジェクト。

返品

インスタンス化されたアクティビティを返します。

属性

注釈

Activity オブジェクトのインスタンス化を実行します。 このメソッドは、android.test.ActivityUnitTestCase などの単体テストで使用することを目的としています。 アクティビティはローカルで使用できますが、システム内で使用するために必要なリンケージの一部が欠落します。

スロー: java.lang.IllegalAccessException

Throws: java.lang.InstantiationException

スロー: IllegalAccessException

Throws: InstantiationException

android.app.Instrumentation.newActivityの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NewActivity(ClassLoader, String, Intent)

プロセスの Activity オブジェクトのインスタンス化を実行します。

[Android.Runtime.Register("newActivity", "(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/content/Intent;)Landroid/app/Activity;", "GetNewActivity_Ljava_lang_ClassLoader_Ljava_lang_String_Landroid_content_Intent_Handler")]
public virtual Android.App.Activity? NewActivity(Java.Lang.ClassLoader? cl, string? className, Android.Content.Intent? intent);
[<Android.Runtime.Register("newActivity", "(Ljava/lang/ClassLoader;Ljava/lang/String;Landroid/content/Intent;)Landroid/app/Activity;", "GetNewActivity_Ljava_lang_ClassLoader_Ljava_lang_String_Landroid_content_Intent_Handler")>]
abstract member NewActivity : Java.Lang.ClassLoader * string * Android.Content.Intent -> Android.App.Activity
override this.NewActivity : Java.Lang.ClassLoader * string * Android.Content.Intent -> Android.App.Activity

パラメーター

cl
ClassLoader

オブジェクトのインスタンス化に使用する ClassLoader。

className
String

Activity オブジェクトを実装するクラスの名前。

intent
Intent

インスタンス化されるアクティビティ クラスを指定した Intent オブジェクト。

返品

新しくインスタンス化された Activity オブジェクト。

属性

注釈

プロセスの Activity オブジェクトのインスタンス化を実行します。 既定の実装では、通常のシステム動作が提供されます。

Throws: ClassNotFoundException

スロー: IllegalAccessException

Throws: InstantiationException

android.app.Instrumentation.newActivityの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象