|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.ServiceManager
public final class ServiceManager
| Constructor Summary | |
|---|---|
ServiceManager()
|
|
| Method Summary | |
|---|---|
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 void |
initServiceCache(Map<String,IBinder> cache)
This is only intended to be called when the process is first being brought up and bound by the activity manager. |
static String[] |
listServices()
Return a list of all currently running services. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceManager()
| Method Detail |
|---|
public static IBinder getService(String name)
name - the name of the service to get
null if the service doesn't exist
public static void addService(String name,
IBinder service)
name - the name of the new serviceservice - the service objectpublic static IBinder checkService(String name)
public static String[] listServices()
throws RemoteException
RemoteExceptionpublic static void initServiceCache(Map<String,IBinder> cache)
cache - the cache of service references
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||