public void dispose(){
  logDebug("Disposing.");
  mSetupDone=false;
  if (mServiceConn != null) {
    logDebug("Unbinding from service.");
    if (mContext != null)     mContext.unbindService(mServiceConn);
  }
  mDisposed=true;
  mContext=null;
  mServiceConn=null;
  mService=null;
  mPurchaseListener=null;
}

public void dispose ( ) { logDebug ( "Disposing." ) ; mSetupDone = false ; if ( mServiceConn != null ) { logDebug ( "Unbinding from service." ) ; if ( mContext != null ) mContext . unbindService ( mServiceConn ) ; } mDisposed = true ; mContext = null ; mServiceConn = null ; mService = null ; mPurchaseListener = null ; }
dispose of object , releasing resources . it ' s very important to call this method when you are done with this object . it will release any resources used by it such as service connections . naturally , once the object is disposed of , it can ' t be used again .
