Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept annotations from intents #251

Closed
apple314159 opened this issue May 8, 2014 · 2 comments
Closed

Accept annotations from intents #251

apple314159 opened this issue May 8, 2014 · 2 comments

Comments

@apple314159
Copy link

I'm interested in generating annotations from a different program and sending an intent to gpslogger. I would like any feedback on this proposal and if there is interest I can send a pull request.

The reason for using another app to generate annotations is to separate the acquisition of annotations from GPS logic. I can see generating annotations from external events or devices.

@mendhak
Copy link
Owner

mendhak commented May 8, 2014

That sounds nice and very useful. It could also make it useful as part of Tasker integration.

You can have a look at some of the logic here; basically if an annotation is set then the next point that gets logged will have that annotation against it. If an annotation is set but the app isn't logging, it will start logging and annotate the point and then stop logging (LogSinglePoint)

@cwarren-qc
Copy link
Contributor

I created a "pull request" that add the following intents:

setnextpointdescription:(text)
setprefercelltower:(true|false)
settimebeforelogging:(number)
setdistancebeforelogging:(number)
setkeepbetweenfix:(true|false)
setretrytime:(number)
setabsolutetimeout:(number)

Tested it with tasker ("Misc/Send Intent" with Action: "com.mendhak.gpslogger.GpsLoggingService", Target: "Service", Extra 1/2 : "setnextpointdescription:My Description").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants