/** Called when the single point button is clicked */ public void onClick(View view) { Utilities.LogDebug("GpsMainActivity.onClick"); if (!Session.isStarted()) { SetMainButtonEnabled(false); loggingService.StartLogging(); Session.setSinglePointMode(true); } else if (Session.isStarted() && Session.isSinglePointMode()) { loggingService.StopLogging(); SetMainButtonEnabled(true); Session.setSinglePointMode(false); } }
public void OnLocationUpdate(Location loc) { Utilities.LogDebug("GpsMainActivity.OnLocationUpdate"); DisplayLocationInfo(loc); ShowPreferencesSummary(); SetMainButtonChecked(true); if (Session.isSinglePointMode()) { loggingService.StopLogging(); SetMainButtonEnabled(true); Session.setSinglePointMode(false); } }