@Deprecated
public class InstrumentationHook
extends android.app.Instrumentation
| 构造器和说明 |
|---|
InstrumentationHook()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
android.app.Activity |
newActivity(java.lang.ClassLoader cl,
java.lang.String className,
android.content.Intent intent)
已过时。
Hook the instrumentation's newActivity, inject
Perform instantiation of the process's
Activity object. |
acquireLooperManager, addMonitor, addMonitor, addMonitor, addResults, callActivityOnCreate, callActivityOnCreate, callActivityOnDestroy, callActivityOnNewIntent, callActivityOnPause, callActivityOnPostCreate, callActivityOnPostCreate, callActivityOnRestart, callActivityOnRestoreInstanceState, callActivityOnRestoreInstanceState, callActivityOnResume, callActivityOnSaveInstanceState, callActivityOnSaveInstanceState, callActivityOnStart, callActivityOnStop, callActivityOnUserLeaving, callApplicationOnCreate, checkMonitorHit, endPerformanceSnapshot, finish, getAllocCounts, getBinderCounts, getComponentName, getContext, getProcessName, getTargetContext, getUiAutomation, getUiAutomation, invokeContextMenuAction, invokeMenuActionSync, isProfiling, newActivity, newApplication, newApplication, onCreate, onDestroy, onException, onStart, removeMonitor, runOnMainSync, sendCharacterSync, sendKeyDownUpSync, sendKeySync, sendPointerSync, sendStatus, sendStringSync, sendTrackballEventSync, setAutomaticPerformanceSnapshots, setInTouchMode, start, startActivitySync, startActivitySync, startAllocCounting, startPerformanceSnapshot, startProfiling, stopAllocCounting, stopProfiling, waitForIdle, waitForIdleSync, waitForMonitor, waitForMonitorWithTimeoutpublic android.app.Activity newActivity(java.lang.ClassLoader cl,
java.lang.String className,
android.content.Intent intent)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.ClassNotFoundException
Perform instantiation of the process's Activity object. The
default implementation provides the normal system behavior.
newActivity 在类中 android.app.Instrumentationcl - The ClassLoader with which to instantiate the object.className - The name of the class implementing the Activity
object.intent - The Intent object that specified the activity class being
instantiated.java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundException