コード例 #1
0
 public void onServiceConnected(ComponentName name, IBinder service) {
   loggingService = ((GpsLoggingService.GpsLoggingBinder) service).getService();
   GpsLoggingService.SetRaceClient(RaceMainActivity.this);
   if (!Session.isStarted()) {
     loggingService.StartLogging();
     Session.setStarted(true);
   }
 }
コード例 #2
0
 public void OnStopLogging() {
   loggingService.StopLogging();
 }