Code example for ContextWrapper

Methods: unbindService

		final ServiceBinder sb = sConnectionMap.remove(cw);
		if (sb == null) {
			Log.e("MusicUtils", "Trying to unbind for unknown Context");
		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;
Contextual code suggestions in your IDE  Get Codota for Java