Code example for ContextWrapper

Methods: unbindService

0
		final ServiceBinder sb = sConnectionMap.remove(cw);
		if (sb == null) {
			Log.e("MusicUtils", "Trying to unbind for unknown Context");
			return; 
		} 
		cw.unbindService(sb);
		if (sConnectionMap.isEmpty()) {
			// presumably there is nobody interested in the service at this point, 
			// so don't hang on to the ServiceConnection 
			sService = null;
		} 
	} 
 
	public static class ServiceToken { 
		ContextWrapper mWrappedContext;
 
		ServiceToken(final ContextWrapper context) {
			mWrappedContext = context;
		} 
	}