예제 #1
0
 private void stopSensors() {
   Logger.d(this, "stopSensors");
   // Store data.
   saveSessionData();
   // Clear state.
   Preferences.clearStoredValues(this);
   mSessionStartTimeMillis = Integer.MIN_VALUE;
   mSessionInitialSteps = Integer.MIN_VALUE;
   mSensorInfo = null;
   // Sensors.
   unregisterSensors();
   if (mListener != null) {
     mListener.onSensorStop();
   }
 }
예제 #2
0
 @Override
 public void onDestroy() {
   Logger.d(this, "onDestroy");
   Preferences.clearStoredValues(this);
 }