public void onServiceConnected(ComponentName name, IBinder service) {
   loggingService = ((GpsLoggingService.GpsLoggingBinder) service).getService();
   GpsLoggingService.SetRaceClient(RaceMainActivity.this);
   if (!Session.isStarted()) {
     loggingService.StartLogging();
     Session.setStarted(true);
   }
 }
 public void OnStopLogging() {
   loggingService.StopLogging();
 }