Methods Summary |
---|
public static Application | getInitialApplication()Return the first Application object made in the process.
NOTE: Only works on the main thread.
return ActivityThread.currentApplication();
|
public static java.lang.String | getInitialPackage()Return the package name of the first .apk loaded into the process.
NOTE: Only works on the main thread.
return ActivityThread.currentPackageName();
|
public static int | getIntCoreSetting(java.lang.String key, int defaultValue)Gets the value of an integer core setting.
ActivityThread currentActivityThread = ActivityThread.currentActivityThread();
if (currentActivityThread != null) {
return currentActivityThread.getIntCoreSetting(key, defaultValue);
} else {
return defaultValue;
}
|
public static android.content.pm.IPackageManager | getPackageManager()Return the raw interface to the package manager.
return ActivityThread.getPackageManager();
|