public void stopSession() {
   tracker.stopTracking(getSession());
   locationHelper.stop();
   state.recording().stopRecording();
   notificationHelper.hideRecordingNotification();
   eventBus.post(new SessionStoppedEvent(getSession()));
 }
 public void startSession(boolean locationLess) {
   setSession(new Session());
   locationHelper.start();
   startSensors();
   state.recording().startRecording();
   notificationHelper.showRecordingNotification();
   eventBus.post(new SessionStartedEvent(getSession()));
   tracker.startTracking(getSession(), locationLess);
 }
 private void cleanup() {
   locationHelper.stop();
   state.recording().stopRecording();
   setSession(new Session());
   notificationHelper.hideRecordingNotification();
 }