示例#1
0
 @Override
 public void onDestroy() {
   // locationApplication.stop();
   releaseWakeLock();
   cordova.getActivity().stopService(new Intent(cordova.getActivity(), LocationApplication.class));
   super.onDestroy();
 }
示例#2
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   gForeground = false;
   gECB = null;
   gWebView = null;
 }
  @Override
  public void onDestroy() {
    cordova.getActivity().getApplicationContext().unregisterReceiver(mHeadsetReceiver);
    cordova.getActivity().getApplicationContext().unregisterReceiver(mNoisyAudioStreamReceiver);
    if (mMTSCRA != null) mMTSCRA.closeDevice();

    super.onDestroy();
  }
示例#4
0
  public void onDestroy() {
    GCMRegistrar.onDestroy(getApplicationContext());
    gWebView = null;
    gECB = null;
    gForeground = false;

    super.onDestroy();
  }
示例#5
0
  public void onDestroy() {
    super.onDestroy();

    if (this.currentSession != null) {
      //    		this.currentSession.kill(new ChromecastSessionCallback() {
      //				void onSuccess(Object object) {	}
      //				void onError(String reason) {}
      //    		});
    }
  }
  /** The final call you receive before your activity is destroyed. */
  @Override
  public void onDestroy() {
    iBeaconManager.unBind(this);

    if (broadcastReceiver != null) {
      cordova.getActivity().unregisterReceiver(broadcastReceiver);
      broadcastReceiver = null;
    }

    super.onDestroy();
  }
  /** The final call you receive before your activity is destroyed. */
  public void onDestroy() {
    if (broadcastReceiver != null) {
      // unRegister our receiver that was registered on localbroadcastmanager
      // wrong: cordova.getActivity().unregisterReceiver(broadcastReceiver);
      LocalBroadcastManager.getInstance(cordova.getActivity().getApplicationContext())
          .unregisterReceiver(broadcastReceiver);

      broadcastReceiver = null;
    }

    // release events in JS side
    if (eventCallbackContext != null) {
      PluginResult result = new PluginResult(PluginResult.Status.OK);
      result.setKeepCallback(false);
      eventCallbackContext.sendPluginResult(result);
      eventCallbackContext = null;
    }

    super.onDestroy();
  }
示例#8
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   // don't know if it's ok yet
   // stopService();
 }
示例#9
0
文件: WakeLock.java 项目: biud436/MV
 public void onDestroy() {
   super.onDestroy();
   this.releaseLock();
 }