Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -4265,6 +4265,7 @@ package android.app { public class Application extends android.content.ContextWrapper implements android.content.ComponentCallbacks2 { ctor public Application(); method public static java.lang.String getProcessName(); method public void onConfigurationChanged(android.content.res.Configuration); method public void onCreate(); method public void onLowMemory(); core/java/android/app/Application.java +11 −1 Original line number Diff line number Diff line Loading @@ -191,6 +191,16 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 { } } /** * Returns the name of the current process. A package's default process name * is the same as its package name. Non-default processes will look like * "$PACKAGE_NAME:$NAME", where $NAME corresponds to an android:process * attribute within AndroidManifest.xml. */ public static String getProcessName() { return ActivityThread.currentProcessName(); } // ------------------ Internal API ------------------ /** Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -4265,6 +4265,7 @@ package android.app { public class Application extends android.content.ContextWrapper implements android.content.ComponentCallbacks2 { ctor public Application(); method public static java.lang.String getProcessName(); method public void onConfigurationChanged(android.content.res.Configuration); method public void onCreate(); method public void onLowMemory();
core/java/android/app/Application.java +11 −1 Original line number Diff line number Diff line Loading @@ -191,6 +191,16 @@ public class Application extends ContextWrapper implements ComponentCallbacks2 { } } /** * Returns the name of the current process. A package's default process name * is the same as its package name. Non-default processes will look like * "$PACKAGE_NAME:$NAME", where $NAME corresponds to an android:process * attribute within AndroidManifest.xml. */ public static String getProcessName() { return ActivityThread.currentProcessName(); } // ------------------ Internal API ------------------ /** Loading