| java.lang.Object | |
| ↳ | com.davidluoye.support.app.Applications |
Special private access for certain globals related to a process.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Applications() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static boolean | canAccessStorage(Context context) | ||||||||||
| static Class<?> | getActivityThreadClass() | ||||||||||
| static Object | getActivityThreadInstance() | ||||||||||
| static Application |
getApplication()
Return the first Application object made in the process.
| ||||||||||
| static Instrumentation | getInstrumentation() | ||||||||||
| static int |
getIntCoreSetting(String key, int defaultValue)
Gets the value of an integer core setting.
| ||||||||||
| static String | getOpPackageName() | ||||||||||
| static PackageManager |
getPackageManager()
Return the raw interface to the package manager.
| ||||||||||
| static String |
getPackageName()
Return the package name of the first .apk loaded into the process.
| ||||||||||
| static String |
getProcessName()
Return current process name.
| ||||||||||
| static boolean | isSystem() | ||||||||||
| static boolean | setInstrumentation(Instrumentation instrumentation) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Return the first Application object made in the process. NOTE: Only works on the main thread.
Gets the value of an integer core setting.
| key | The setting key. |
|---|---|
| defaultValue | The setting default value. |
Return the raw interface to the package manager.
Return the package name of the first .apk loaded into the process. NOTE: Only works on the main thread.
Return current process name.