FileDocCategorySizeDatePackage
ServiceManager.javaAPI DocAndroid 5.1 API2164Thu Mar 12 22:22:44 GMT 2015android.os

ServiceManager

public final class ServiceManager extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidaddService(java.lang.String name, IBinder service)
Place a new @a service called @a name into the service manager.

param
name the name of the new service
param
service the service object

        // pass
    
public static IBindercheckService(java.lang.String name)
Retrieve an existing service called @a name from the service manager. Non-blocking.

        return null;
    
public static IBindergetService(java.lang.String name)
Returns a reference to a service with the given name.

param
name the name of the service to get
return
a reference to the service, or null if the service doesn't exist

        return null;
    
public static voidinitServiceCache(java.util.Map cache)
This is only intended to be called when the process is first being brought up and bound by the activity manager. There is only one thread in the process at that time, so no locking is done.

param
cache the cache of service references
hide

        // pass
    
public static java.lang.String[]listServices()
Return a list of all currently running services.

        // actual implementation returns null sometimes, so it's ok
        // to return null instead of an empty list.
        return null;