ActivityManager
https://developer.android.com/reference/android/app/ActivityManager
extend Object
This class gets information about activities, services, processes, and interrelationships.
Many methods in this class are used for debugging and process information. Please do not use it in a way that affects the execution behavior of the development application. These classes are called at the method level.
This class should only be used in special cases and should not be used in app development. But some methods are not limited to this. For example, ** isLowRamDevice () ** will detect if you are running on a device that is out of memory and will act accordingly. ** clearApplicationUserData () ** gives the app a data reset function.
Similarly, ** ActivityManager.AppTask ** and ** ActivityManager.RecentTaskInfo ** may use inner classes when using apps associated with the task stack.
However, in general, you should use the methods of this class only for testing and debugging purposes.
Nested classes
-** AppTask **
Manage app tasks
-** MemoryInfo **
Available memory
ActivityManager # getMemoryInfo </ font>
-** ProcessErrorStateInfo **
Information about the process in error state
--RecentTaskInfo
Latest task information operated by the user
--RunningAppProcessInfo
Running process information </ font>
--RunningServiceInfo
The latest service information running on the system
--RunningTaskInfo
The latest task information running on the system
--TaskDescription
Activity information that can be set and retrieved for the current activity in the latest task list.
public static class ActivityManager.RunningServiceInfo extends Object implements Parcelable
Get information about the specific service currently running on the system.
int | FLAG_FOREGROUND | Set when the service is required to run as a foreground process td> |
int | FLAG_PERSISTENT_PROCESS | Set when the service is running permanently td> |
int | FLAG_STARTED | Set when the service is explicitly started td> |
int | FLAG_SYSTEM_PROCESS | Set when the service is running in a core system process td> |
--public long
** activeSince **
Timing when the service first makes active by start request or bind
--public int
** clientCount **
Number of clients connected to the service
--public int
** clientLabel **
A string for services bound with system code that displays a label that identifies the client to the user.
--public String
** clientPackage **
A package that holds bindings for services bound by system code.
--public int
** crashCount **
Number of crashes while the service is running
--public int
** flags **
Flags in operation
--poblic boolean
** foreground **
Takes a true value when the service requests it to run as a foreground process
--public long
** lastActivityTime **
When the last activity of the service is up (when explicitly started or when the client binds)
--public int
** pid **
If non-zero, the service is running in the process
--public String
** process **
The name of the process on which the service runs
--public long
** restarting **
If non-zero, this service has not been run recently but will be restarted at the specified time
--public Component Name
** service **
Service component
--public boolean
** started **
Returns true if the service was explicitly started
--public int
** uid **
UID that owns the service
public constructors ActivityManager.RunnableServiceInfo()
public Method
--describeContents ()
Describe special objects. Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
Recommended Posts