Code example for ContextWrapper

Methods: unbindService

0
		wrapper.bindService(bindIntent, this, Context.BIND_AUTO_CREATE);
	} 
 
	public void disconnect(ContextWrapper wrapper) {
		if (connection != null) {
			wrapper.unbindService(this);
		} 
	} 
 
	public void onServiceConnected(ComponentName arg0, IBinder binder) {
		connection = SyncService.Stub.asInterface(binder);
		onConnected(); 
	} 
 
	public void onServiceDisconnected(ComponentName arg0) {
		connection = null;
		onDisconnected(); 
 
	} 
 
	abstract public void onConnected();