다음을 통해 공유


Instrumentation.NewActivity 메서드

정의

오버로드

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

개체의 Activity 인스턴스화를 수행합니다.

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

개체의 Activity 인스턴스화를 수행합니다.

NewActivity(ClassLoader, String, Intent)

프로세스 Activity 개체의 인스턴스화를 수행합니다.

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.app.Instrumentation.newActivity(java.lang.Class<?>, android.content.Context, android.os.IBinder, android.app.Application, android.content.Intent, android.content.pm.ActivityInfo, java.lang.CharSequence, android.app.Activity, java.lang.String, java.lang.Object)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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.app.Instrumentation.newActivity(java.lang.Class<?>, android.content.Context, android.os.IBinder, android.app.Application, android.content.Intent, android.content.pm.ActivityInfo, java.lang.CharSequence, android.app.Activity, java.lang.String, java.lang.Object)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 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 개체의 인스턴스화를 수행합니다. 기본 구현은 정상적인 시스템 동작을 제공합니다.

에 대한 android.app.Instrumentation.newActivity(java.lang.ClassLoader, java.lang.String, android.content.Intent)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상