@Override
 public void onDestroy() {
   // locationApplication.stop();
   releaseWakeLock();
   cordova.getActivity().stopService(new Intent(cordova.getActivity(), LocationApplication.class));
   super.onDestroy();
 }
Beispiel #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();
  }
Beispiel #4
0
  public void onDestroy() {
    GCMRegistrar.onDestroy(getApplicationContext());
    gWebView = null;
    gECB = null;
    gForeground = false;

    super.onDestroy();
  }
  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();
  }
Beispiel #8
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   // don't know if it's ok yet
   // stopService();
 }
Beispiel #9
0
 public void onDestroy() {
   super.onDestroy();
   this.releaseLock();
 }