public void OnLocationUpdate(Location loc) { System.out.println("LOCATION UPDATE IN RACEACTIVITYYYYY!!!!!"); Utilities.LogDebug("LOCATION UPDATE IN RACEACTIVITYYYYY!!!!!"); // send location to webserver raceState.sendUpdate(raceId, loc.getLongitude(), loc.getLatitude(), loc.getAltitude()); // retrieve update from webserver raceState.receiveUpdate(); }
private void StartAndBindService() { Utilities.LogDebug("StartAndBindService FROM RACEACTIVITY - binding now"); serviceIntent = new Intent(this, GpsLoggingService.class); // Start the service in case it isn't already running startService(serviceIntent); // Now bind to service bindService(serviceIntent, gpsServiceConnection, Context.BIND_AUTO_CREATE); Session.setRaceBoundToService(true); }