Instrumentation.NewActivity メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
NewActivity(Class, Context, IBinder, Application, Intent, ActivityInfo, String, Activity, String, Object) |
オブジェクトのインスタンス化を |
NewActivity(Class, Context, IBinder, Application, Intent, ActivityInfo, ICharSequence, Activity, String, Object) |
オブジェクトのインスタンス化を |
NewActivity(ClassLoader, String, Intent) |
プロセスのオブジェクトのインスタンス化を |
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()
使用できる任意のオブジェクト。
戻り値
インスタンス化されたアクティビティを返します。
注釈
オブジェクトのインスタンス化を Activity
実行します。 このメソッドは、android.test.ActivityUnitTestCase などの単体テストで使用することを目的としています。 アクティビティはローカルで使用できますが、システム内で使用するために必要なリンケージの一部が欠落します。
このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。
適用対象
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 などの単体テストで使用することを目的としています。 アクティビティはローカルで使用できますが、システム内で使用するために必要なリンケージの一部が欠落します。
このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。
適用対象
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
実行します。 既定の実装では、通常のシステム動作が提供されます。
このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。