Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass an Activity rather than a Context into the tracker, so we can us…
…e it as the notification target
- Loading branch information
1 parent
8eb4280
commit 46f5e1a
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
libraries/cyclestreets-track/src/main/java/net/cyclestreets/track/IRecordService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package net.cyclestreets.track; | ||
|
||
import android.app.Activity; | ||
|
||
interface IRecordService { | ||
public int getState(); | ||
|
||
public TripData startRecording(); | ||
public TripData stopRecording(); | ||
|
||
public void setListener(TrackListener ra); | ||
public void setNotificationActivity(Class<Activity> activityClass); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters