Code example for ContextWrapper

Methods: unbindService

0
	public static void unbindService(final ServiceToken token) {
		if (token == null) return;
		final ContextWrapper cw = token.wrapped_context;
		final ServiceBinder sb = sConnectionMap.remove(cw);
		if (sb == null) return;
		cw.unbindService(sb);
	} 
 
	public static class ServiceToken { 
 
		ContextWrapper wrapped_context;
 
		ServiceToken(final ContextWrapper context) {
 
			wrapped_context = context;
		} 
	} 
 
	static class ServiceBinder implements ServiceConnection {
 
		private final ServiceConnection mCallback;