public class RuntimeInit extends Object
Constructor and Description |
---|
RuntimeInit() |
Modifier and Type | Method and Description |
---|---|
static IBinder |
getApplicationObject() |
static void |
main(String[] argv) |
static void |
redirectLogStreams()
Redirect System.out and System.err to the Android log.
|
static void |
setApplicationObject(IBinder app)
Set the object identifying this application/process, for reporting VM
errors.
|
static void |
wrapperInit(int targetSdkVersion,
String[] argv)
The main function called when an application is started through a
wrapper process.
|
static void |
wtf(String tag,
Throwable t,
boolean system)
Report a serious error in the current process.
|
static void |
zygoteInit(int targetSdkVersion,
String[] argv,
ClassLoader classLoader)
The main function called when started through the zygote process.
|
public static final void main(String[] argv)
public static final void zygoteInit(int targetSdkVersion, String[] argv, ClassLoader classLoader) throws ZygoteInit.MethodAndArgsCaller
Current recognized args:
[--] <start class name> <args>
targetSdkVersion
- target SDK versionargv
- arg stringsZygoteInit.MethodAndArgsCaller
public static void wrapperInit(int targetSdkVersion, String[] argv) throws ZygoteInit.MethodAndArgsCaller
main(java.lang.String[])
which calls WrapperInit.main(java.lang.String[])
which then calls this method.
So we don't need to call commonInit() here.targetSdkVersion
- target SDK versionargv
- arg stringsZygoteInit.MethodAndArgsCaller
public static void redirectLogStreams()
public static void wtf(String tag, Throwable t, boolean system)
tag
- to record with the errort
- exception describing the error site and conditionspublic static final void setApplicationObject(IBinder app)
public static final IBinder getApplicationObject()