Пример #1
0
 protected void onDestroy() {
   super.onDestroy();
   if (locationManager != null) {
     // 关闭程序时将监听器移除
     locationManager.removeUpdates(locationListener);
   }
 }
Пример #2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (sensorManager != null) {
     sensorManager.unregisterListener(listener);
   }
 }
Пример #3
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mRequestQueueManager != null) {
     mRequestQueueManager.cancelPendingRequest(REQUEST_TAG_CATEGORY_lIST);
   }
 }
Пример #4
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (bluetoothClient != null && bluetoothClient.is_connected()) {
     bluetoothClient.doClose();
   }
 }
Пример #5
0
 @Override
 protected void onDestroy() {
   Log.d(LOGTAG, "MainActivity.onDestroy()");
   timer.cancel();
   db.close();
   super.onDestroy();
 }
Пример #6
0
 @Override
 protected void onDestroy() {
   if (followerServiceConnection != null) {
     unbindService(followerServiceConnection);
   }
   super.onDestroy();
 }
Пример #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();
 }
Пример #10
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mLayoutController != null) {
     mLayoutController.dispose();
   }
 }
Пример #11
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (this.mCompositeSubscription != null) {
     this.mCompositeSubscription.unsubscribe();
   }
 }
Пример #12
0
  @Override
  public void onDestroy() {
    super.onDestroy(); // always call the superclass

    // do something

  }
Пример #13
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (cameraView != null) {
     cameraView.disableView();
   }
 }
Пример #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();
 }
Пример #16
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   logo.setImageDrawable(null);
   add_new_card.setImageDrawable(null);
   add_interests.setImageDrawable(null);
 }
Пример #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();
   }
 }
Пример #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();
 }
Пример #20
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   /*Log.e("SPO2 application", "--- ON DESTROY ---");
   for(int i=0;i<3;i++)
       MainActivity.SendMorSensorStop();*/
 }
Пример #21
0
  @Override
  protected void onDestroy() {
    super.onDestroy();
    JMessageClient.unRegisterEventReceiver(this);

    client.stop();
  }
Пример #22
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   //        if (intentFilter != null) {
   //            this.unregisterReceiver(myBroadcastReceiver);
   //        }
 }
Пример #23
0
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   ActivityStack.getIns().popup(this);
   dissmissProcessDialog();
 }
Пример #24
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

    lm.removeUpdates(mListerner);
    mListerner = null;
  }
Пример #25
0
 @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();
 }
Пример #27
0
  @Override
  protected void onDestroy() {

    // unregister the BroadcastReceiver
    unregisterReceiver(mBroadcastReceiver);
    super.onDestroy();
  }
 @Override
 protected void onDestroy() {
   if (mKlarnaCheckout != null) {
     mKlarnaCheckout.destroy();
   }
   super.onDestroy();
 }
Пример #29
0
  @Override
  protected void onDestroy() {
    super.onDestroy();

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