@Override
  protected void onStop() {
    super.onStop();
    mSensorManager.unregisterListener(this, mStepCounterSensor);
    mSensorManager.unregisterListener(this, mStepDetectorSensor);

    try {
      unregisterReceiver(br);
    } catch (Exception e) {
      // Receiver was probably already stopped in onPause()
    }
    Log.i(TAG, "[ACTIVITY] onStop");
    super.onStop();
  }
Exemplo n.º 2
0
  /** Stops timed refresh for new bust stop info. */
  @Override
  protected void onStop() {
    super.onStop();

    // stopping the timed refresh for bus stop info
    timer.cancel();
  }
Exemplo n.º 3
0
  @Override
  protected void onStop() {
    super.onStop();

    new SaveReadFile(Utils.getFileFromName(this, Constants.ARTICLE_LIST_FILE))
        .writeListToFile(articles);
  }
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   super.onStop();
   removeCallbackEventListener(EventCode.CALLBACK_APPLICATION_NOTIFICATION_TO_ACTIVITY);
   removeCallbackEventListener(EventCode.CALLBACK_IN_FRAGMENT_TASK_ACTIVITY_THAT_NET_ERROR);
 }
Exemplo n.º 5
0
  @Override
  public void onStop() {
    super.onStop(); // always call the superclass

    // do something

  }
Exemplo n.º 6
0
  @Override
  protected void onStop() {
    super.onStop();

    // Disconnect from the remote device and close the serial port
    bluetoothSerial.stop();
  }
 @Override
 protected void onStop() {
   if (btService != null) {
     btService.unregisterActivity();
   }
   super.onStop();
 }
Exemplo n.º 8
0
 /** * Stop location service */
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   locationService.unregisterListener(mListener); // 注销掉监听
   locationService.stop(); // 停止定位服务
   super.onStop();
 }
Exemplo n.º 9
0
 @Override
 protected void onStop() {
   super.onStop();
   if (mVideoView.canPause()) {
     mVideoView.pause();
   }
 }
Exemplo n.º 10
0
 @Override
 protected void onStop() {
   super.onStop();
   NetworkConnection.getInstance(this)
       .getRequestQueue()
       .cancelAll(UsuarioActivity.class.getName());
 }
Exemplo n.º 11
0
 @Override
 protected void onStop() {
   super.onStop();
   if (mGoogleApiClient.isConnected()) {
     mGoogleApiClient.disconnect();
   }
 }
 @Override
 protected void onStop() {
   /** La actividad ya no va a ser visible para el usuario. */
   super.onStop();
   sensorManager.unregisterListener(this, mStepCounterSensor);
   sensorManager.unregisterListener(this, mStepDetectorSensor);
 }
Exemplo n.º 13
0
  @Override
  protected void onStop() {
    super.onStop();
    Log.d(TAG, "onStop");
    Log.d(TAG, "Stopping Receiver Thread");
    if (mReceiverThread != null) {
      mReceiverThread.stopTransmission();
      try {
        mReceiverThread.join();
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }

    Log.d(TAG, "Stopping KeepAlive Thread");
    if (mKeepAliveThread != null) {
      mKeepAliveThread.stopTransmission();
      try {
        mKeepAliveThread.join();
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }

    Log.d(TAG, "Stopping Activity");
  }
 @Override
 protected void onStop() {
   // To prevent a memory leak on rotation, make sure to call stopAutoCycle() on the slider before
   // activity or fragment is destroyed
   mDemoSlider.stopAutoCycle();
   super.onStop();
 }
Exemplo n.º 15
0
 @Override
 protected void onStop() {
   super.onStop();
   if (connectionSupportAsyncTask != null) {
     connectionSupportAsyncTask.cancel(false);
   }
 }
 @Override
 public void onStop() {
   if (tts != null) {
     tts.stop();
   }
   super.onStop();
 }
Exemplo n.º 17
0
  @Override
  public void onStop() {
    super.onStop();

    if (!archive_mode) {
      MyApplication.editor.putString("WXOGL_RID", rid1);
      MyApplication.editor.putString("WXOGL_PROD", prod);
      MyApplication.editor.putFloat("WXOGL_ZOOM", OGLR.getZoom());
      MyApplication.editor.putFloat("WXOGL_X", OGLR.mPositionX);
      MyApplication.editor.putFloat("WXOGL_Y", OGLR.mPositionY);
      MyApplication.editor.apply();

      MyApplication.wxogl_rid = rid1;
      MyApplication.wxogl_prod = prod;
      MyApplication.wxogl_zoom = OGLR.getZoom();
      MyApplication.wxogl_x = OGLR.mPositionX;
      MyApplication.wxogl_y = OGLR.mPositionY;
    }

    // otherwise cpu will spin with no fix but to kill app

    in_ogl_anim = false;

    if (mHandler != null) stopRepeatingTask();
  }
Exemplo n.º 18
0
 @Override
 protected void onStop() {
   super.onStop();
   timer = null;
   soals = null;
   setContentView(R.layout.activity_exercise_resume);
 }
 @Override
 protected void onStop() {
   try {
     droid4mizer.onStop();
   } finally {
     super.onStop();
   }
 }
Exemplo n.º 20
0
 @Override
 protected void onStop() {
   super.onStop();
   if (mBound) {
     unbindService(mServiceConnection);
     mBound = false;
   }
 }
 /**
  * Called when Activity is no longer visible. Release resources that may cause memory leak. Save
  * instance state (onSaveInstanceState()) in case activity is killed.
  */
 @Override
 protected void onStop() {
   // Always call super class for necessary
   // initialization/implementation and then log which lifecycle
   // hook method is being called.
   super.onStop();
   Log.d(TAG, "onStop() - the activity is no longer visible (it is now \"stopped\")");
 }
  @Override
  protected void onStop() {
    super.onStop();

    if (!Constants.LOCAL_RUN && apiClient != null && apiClient.isConnected()) {
      apiClient.disconnect();
    }
  }
Exemplo n.º 23
0
 @Override
 protected void onStop() {
   super.onStop();
   LoginActivity.socket.off("chat", chatListener);
   MapActivity.unameL = unameL1;
   MapActivity.timeL = timeL1;
   MapActivity.messageL = messageL1;
 }
  @Override
  protected void onStop() {
    System.out.println("[WaitingForSherpa]STOPPED!!!");

    loadingAnimation.stop();
    cancelUpdates();

    super.onStop();
  }
Exemplo n.º 25
0
  @Override
  public void onStop() {
    super.onStop();

    // ATTENTION: This was auto-generated to implement the App Indexing API.
    // See https://g.co/AppIndexing/AndroidStudio for more information.
    AppIndex.AppIndexApi.end(client, getIndexApiAction());
    client.disconnect();
  }
Exemplo n.º 26
0
 @Override
 protected void onStop() {
   super.onStop();
   try {
     serverSocket.close();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
Exemplo n.º 27
0
 @Override
 public void onStop() {
   super.onStop();
   if (mBound) {
     unbindService(mConnection);
     mBound = false;
   }
   mService.remListener(chatListener);
 }
Exemplo n.º 28
0
 @Override
 protected void onStop() {
   // TODO Auto-generated method stub
   super.onStop();
   if (bluetoothClient != null && bluetoothClient.is_connected()) {
     bluetoothClient.doClose();
   }
   connected_ = false;
 }
Exemplo n.º 29
0
 @Override
 protected void onStop() {
   super.onStop();
   facebookTokenTracker.stopTracking();
   facebookProfileTracker.stopTracking();
   if (googleApiClient.isConnected()) {
     googleApiClient.disconnect();
   }
 }
 @Override
 protected void onStop() {
   if (mLocationTracker != null) {
     mLocationTracker.stopUpdates();
   }
   if (mGpsTracker != null) {
     mGpsTracker.stopUsingGPS();
   }
   super.onStop();
 }