|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceConnection
Interface for monitoring the state of an application service. See
Service and
Context.bindService() for more information.
Like many callbacks from the system, the methods on this class are called from the main thread of your process.
| Method Summary | |
|---|---|
void |
onServiceConnected(ComponentName name,
IBinder service)
Called when a connection to the Service has been established, with the IBinder of the communication channel to the
Service. |
void |
onServiceDisconnected(ComponentName name)
Called when a connection to the Service has been lost. |
| Method Detail |
|---|
void onServiceConnected(ComponentName name,
IBinder service)
IBinder of the communication channel to the
Service.
name - The concrete component name of the service that has
been connected.service - The IBinder of the Service's communication channel,
which you can now make calls on.void onServiceDisconnected(ComponentName name)
onServiceConnected(android.content.ComponentName, android.os.IBinder) when the Service is next running.
name - The concrete component name of the service whose
connection has been lost.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||