public void destroy(){
  mDestroyed=true;
  mHandler.removeCallbacksAndMessages(null);
  if (mService != null) {
    try {
      mService.listenTo(null,mCallback);
      mContext.unbindService(mConnection);
    }
 catch (    RemoteException e) {
    }
  }
}

public void destroy ( ) { mDestroyed = true ; mHandler . removeCallbacksAndMessages ( null ) ; if ( mService != null ) { try { mService . listenTo ( null , mCallback ) ; mContext . unbindService ( mConnection ) ; } catch ( RemoteException e ) { } } }
destroy this host instance , freeing its resources . after calling this , the host can no longer receive extension updates . this should be used in the ondestroy ( ) method of the activity or service holding this host .
