java.lang.Object | |
↳ | android.app.ActivityManager.RunningServiceInfo |
Information you can retrieve about a particular Service that is currently running in the system.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_FOREGROUND | Bit for flags : set if the service has asked to
run as a foreground process. |
|||||||||
int | FLAG_PERSISTENT_PROCESS | Bit for {@link #flags): set if the service is running in a persistent process. | |||||||||
int | FLAG_STARTED | Bit for flags : set if this service has been
explicitly started. |
|||||||||
int | FLAG_SYSTEM_PROCESS | Bit for {@link #flags): set if the service is running in a core system process. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
activeSince | The time when the service was first made active, either by someone starting or binding to it. | ||||||||||
clientCount | Number of clients connected to the service. | ||||||||||
clientLabel | For special services that are bound to by system code, this is a string resource providing a user-visible label for who the client is. | ||||||||||
clientPackage | For special services that are bound to by system code, this is the package that holds the binding. | ||||||||||
crashCount | Number of times the service's process has crashed while the service is running. | ||||||||||
flags | Running flags. | ||||||||||
foreground | Set to true if the service has asked to run as a foreground process. | ||||||||||
lastActivityTime | The time when there was last activity in the service (either explicit requests to start it or clients binding to it). | ||||||||||
pid | If non-zero, this is the process the service is running in. | ||||||||||
process | The name of the process this service runs in. | ||||||||||
restarting | If non-zero, this service is not currently running, but scheduled to restart at the given time. | ||||||||||
service | The service component. | ||||||||||
started | Set to true if this service has been explicitly started. | ||||||||||
uid | The UID that owns this service. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Bit for flags
: set if the service has asked to
run as a foreground process.
Bit for {@link #flags): set if the service is running in a persistent process.
Bit for flags
: set if this service has been
explicitly started.
Bit for {@link #flags): set if the service is running in a core system process.
The time when the service was first made active, either by someone
starting or binding to it. This
is in units of elapsedRealtime()
.
For special services that are bound to by system code, this is a string resource providing a user-visible label for who the client is.
For special services that are bound to by system code, this is the package that holds the binding.
Number of times the service's process has crashed while the service is running.
Set to true if the service has asked to run as a foreground process.
The time when there was last activity in the service (either
explicit requests to start it or clients binding to it). This
is in units of uptimeMillis()
.
If non-zero, this service is not currently running, but scheduled to restart at the given time.
Set to true if this service has been explicitly started.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|