| java.lang.Object | |
| ↳ | com.davidluoye.support.os.ServiceManager |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static void |
addService(String name, IBinder service)
Place a new @a service called @a name into the service
manager.
| ||||||||||
| static IBinder |
checkService(String name)
Retrieve an existing service called @a name from the
service manager.
| ||||||||||
| static IBinder |
getService(String name)
Returns a reference to a service with the given name.
| ||||||||||
| static String[] |
listServices()
Return a list of all currently running services.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Place a new @a service called @a name into the service manager.
| name | the name of the new service |
|---|---|
| service | the service object |
Retrieve an existing service called @a name from the service manager. Non-blocking.
Returns a reference to a service with the given name.
Important: May block the calling thread!
| name | the name of the service to get |
|---|
null if the service doesn't exist
Return a list of all currently running services.