protected void onDestroy() {
   super.onDestroy();
   if (locationManager != null) {
     // 关闭程序时将监听器移除
     locationManager.removeUpdates(locationListener);
   }
 }
Exemple #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (sensorManager != null) {
     sensorManager.unregisterListener(listener);
   }
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mRequestQueueManager != null) {
     mRequestQueueManager.cancelPendingRequest(REQUEST_TAG_CATEGORY_lIST);
   }
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (bluetoothClient != null && bluetoothClient.is_connected()) {
     bluetoothClient.doClose();
   }
 }
 @Override
 protected void onDestroy() {
   Log.d(LOGTAG, "MainActivity.onDestroy()");
   timer.cancel();
   db.close();
   super.onDestroy();
 }
Exemple #6
0
 @Override
 protected void onDestroy() {
   if (followerServiceConnection != null) {
     unbindService(followerServiceConnection);
   }
   super.onDestroy();
 }
Exemple #7
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    // Avoid hiding invalid dialogs
    mIsDestroyed = true;
  }
 /**
  * On destroying of this activity, unregister this activity as a listener so it won't process any
  * incoming messages.
  */
 @Override
 public void onDestroy() {
   MMX.unregisterListener(mEventListener);
   S3UploadService.destroy();
   mGPS.stopUsingGPS();
   super.onDestroy();
 }
 /** 界面销毁回调函数 */
 @Override
 protected void onDestroy() {
   super.onDestroy();
   BaseApplication.removeActivity(this);
   if (codeToListenerMap != null) {
     final int nCount = codeToListenerMap.size();
     for (int nIndex = 0; nIndex < nCount; ++nIndex) {
       removeCallbackEventListener(codeToListenerMap.keyAt(nIndex));
     }
     codeToListenerMap.clear();
   }
   requestCodeOfCustomerCardRelatedInfoDown = 0;
   requestCodeForOrderScuessToupdateCustomer = 0;
   requestCodeForEditCustomer = 0;
   toastManager = null; // 提示管理器
   mContext = null; // 上下文
   baseAttribute = null; // 基础属性抽象
   clickView = null; // 点击VIEW
   avatarDisplayImageOptions = null; // 圆角头像参数
   defaultDisplayImageOptions = null; // 默认参数
   clickedViewId = 0; // 点击VIEWID
   eventCode = 0; // 事件编码
   // 设置空的布局快速释放内存
   setContentView(R.layout.a_a_null_view);
   // 强制清理此Activity对象资源
   System.gc();
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mLayoutController != null) {
     mLayoutController.dispose();
   }
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (this.mCompositeSubscription != null) {
     this.mCompositeSubscription.unsubscribe();
   }
 }
Exemple #12
0
  @Override
  public void onDestroy() {
    super.onDestroy(); // always call the superclass

    // do something

  }
Exemple #13
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (cameraView != null) {
     cameraView.disableView();
   }
 }
Exemple #14
0
 @Override
 protected void onDestroy() {
   mVideoView.stopPlayback();
   mVideoView.release(true);
   IjkMediaPlayer.native_profileEnd();
   super.onDestroy();
 }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   Log.d(TAG, "onDestroy");
   mBigArrayHolder = null;
   System.gc();
 }
Exemple #16
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   logo.setImageDrawable(null);
   add_new_card.setImageDrawable(null);
   add_interests.setImageDrawable(null);
 }
Exemple #17
0
 @Override
 protected void onDestroy() {
   realmDBManager.close();
   if (EventBus.getDefault().isRegistered(this)) EventBus.getDefault().unregister(this);
   Runtime.getRuntime().gc();
   super.onDestroy();
 }
 /**
  * Releases the resources associated with the camera source, the associated detectors, and the
  * rest of the processing pipeline.
  */
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mPreview != null) {
     mPreview.release();
   }
 }
Exemple #19
0
 public void onDestroy() {
   super.onDestroy();
   WifiManager wm = (WifiManager) getSystemService(WIFI_SERVICE);
   final String ip = Formatter.formatIpAddress(wm.getConnectionInfo().getIpAddress());
   deleteMarqueurBDD(ip); // Delete tout les marqueurs de la session
   mapView.destroyAll();
 }
Exemple #20
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   /*Log.e("SPO2 application", "--- ON DESTROY ---");
   for(int i=0;i<3;i++)
       MainActivity.SendMorSensorStop();*/
 }
  @Override
  protected void onDestroy() {
    super.onDestroy();
    JMessageClient.unRegisterEventReceiver(this);

    client.stop();
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   //        if (intentFilter != null) {
   //            this.unregisterReceiver(myBroadcastReceiver);
   //        }
 }
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   ActivityStack.getIns().popup(this);
   dissmissProcessDialog();
 }
  @Override
  protected void onDestroy() {
    super.onDestroy();

    lm.removeUpdates(mListerner);
    mListerner = null;
  }
 @Override
 protected void onDestroy() {
   unregisterReceiver(mExistReceiver);
   mExistReceiver = null;
   RxUtils.unsubscribeIfNotNull(_subscriptions);
   super.onDestroy();
 }
 @Override
 protected void onDestroy() {
   LKMapView.clean();
   LKTrainView.clean();
   System.gc();
   super.onDestroy();
 }
Exemple #27
0
  @Override
  protected void onDestroy() {

    // unregister the BroadcastReceiver
    unregisterReceiver(mBroadcastReceiver);
    super.onDestroy();
  }
 @Override
 protected void onDestroy() {
   if (mKlarnaCheckout != null) {
     mKlarnaCheckout.destroy();
   }
   super.onDestroy();
 }
  @Override
  protected void onDestroy() {
    super.onDestroy();

    // Something about Android keeping references in memory?
    mainFragment = null;
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   Log.d(this.toString(), "onDestroy: ");
   Toast.makeText(NormalActivity.this, this.toString() + " onDestroy: ", Toast.LENGTH_SHORT)
       .show();
 }