Code example for ContextWrapper

Methods: unbindService

0
        ServiceBinder sb = sConnectionMap.remove(cw);
        if (sb == null) {
            Log.e(TAG, "Trying to unbind for unknown Context");
            return; 
        } 
        cw.unbindService(sb);
        if (sConnectionMap.isEmpty()) {
        	sService = null;
        } 
    } 
	/* --------------------------------------------------------- 
	 |		DMC server interface ������Ҫ�Ķ��� 
	 *  --------------------------------------------------------*/ 
	public static IDlnaMediaControlService sService = null;
	private static HashMap<Context, ServiceBinder> sConnectionMap = new HashMap<Context, ServiceBinder>();
	public static class ServiceToken { 
        ContextWrapper mWrappedContext;
        ServiceToken(ContextWrapper context) {
            mWrappedContext = context;
        } 
    }