Esempio n. 1
0
 protected void onDestroy() {
   super.onDestroy();
   if (locationManager != null) {
     // 关闭程序时将监听器移除
     locationManager.removeUpdates(locationListener);
   }
 }
Esempio n. 2
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (sensorManager != null) {
     sensorManager.unregisterListener(listener);
   }
 }
Esempio n. 3
0
 @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();
 }
Esempio n. 6
0
 @Override
 protected void onDestroy() {
   if (followerServiceConnection != null) {
     unbindService(followerServiceConnection);
   }
   super.onDestroy();
 }
Esempio n. 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();
 }
Esempio n. 10
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (mLayoutController != null) {
     mLayoutController.dispose();
   }
 }
Esempio n. 11
0
 @Override
 protected void onDestroy() {
   super.onDestroy();
   if (this.mCompositeSubscription != null) {
     this.mCompositeSubscription.unsubscribe();
   }
 }
Esempio n. 12
0
  @Override
  public void onDestroy() {
    super.onDestroy(); // always call the superclass

    // do something

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

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

    lm.removeUpdates(mListerner);
    mListerner = null;
  }
Esempio n. 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();
 }
Esempio n. 27
0
  @Override
  protected void onDestroy() {

    // unregister the BroadcastReceiver
    unregisterReceiver(mBroadcastReceiver);
    super.onDestroy();
  }
 @Override
 protected void onDestroy() {
   if (mKlarnaCheckout != null) {
     mKlarnaCheckout.destroy();
   }
   super.onDestroy();
 }
Esempio n. 29
0
  @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();
 }