java.lang.Object | |
↳ | android.app.AndroidAppHelper |
Contains various methods for information about the current app.
For historical reasons, this class is in the android.app
package. It can't be moved
without breaking compatibility with existing modules.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the main
Application object in the current process.
| |||||||||||
Returns information about the main application in the current process.
| |||||||||||
Returns the Android package name of the main application in the current process.
| |||||||||||
Returns the name of the current process.
| |||||||||||
This method is deprecated.
Use
XSharedPreferences instead.
| |||||||||||
This method is deprecated.
Use
XSharedPreferences instead.
| |||||||||||
This method is deprecated.
Use
XSharedPreferences.reload() instead.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the main Application
object in the current process.
In a few cases, multiple apps might run in the same process, e.g. the SystemUI and the
Keyguard which both have android:process="com.android.systemui"
set in their
manifest. In those cases, the first application that was initialized will be returned.
Returns information about the main application in the current process.
In a few cases, multiple apps might run in the same process, e.g. the SystemUI and the
Keyguard which both have android:process="com.android.systemui"
set in their
manifest. In those cases, the first application that was initialized will be returned.
Returns the Android package name of the main application in the current process.
In a few cases, multiple apps might run in the same process, e.g. the SystemUI and the
Keyguard which both have android:process="com.android.systemui"
set in their
manifest. In those cases, the first application that was initialized will be returned.
Returns the name of the current process. It's usually the same as the main package name.