Add methods to TrackRecordingService to start and stop GPS.

No longer unregister location listener before registering it.
This commit is contained in:
Jimmy Shih
2013-05-20 14:04:10 -07:00
parent 5329ccd37f
commit 1a68435eb4
3 changed files with 121 additions and 64 deletions
@@ -23,6 +23,16 @@ import com.google.android.apps.mytracks.content.WaypointCreationRequest;
*/
interface ITrackRecordingService {
/**
* Starts gps.
*/
void startGps();
/**
* Stops gps.
*/
void stopGps();
/**
* Starts recording a new track.
*
@@ -85,14 +95,14 @@ interface ITrackRecordingService {
/**
* Gets the current sensor data. Returns null if there is no data.
* @return a byte array of the binary version of the Sensor.SensorDataSet object.
*/
byte[] getSensorData();
/**
* Gets the current sensor manager state.
*
*
* return a Sensor.SensorState enum value.
*/
int getSensorState();