Page 1 of 1

[closed] Is there a complete list of android intents?

Posted: Tue Apr 21, 2020 1:46 pm
by nightcustard
Hi - I'm looking into the possibility of using the Android app Tasker to send intents to AlpineQuest Off-road Explorer (Vers. 2.2.4), primarily at this stage to see if I can display where my dog has run off to (!) on an off-line map (he's got an old phone on his harness for sending lat/long SMS messages).
I've searched Google which lead me the AQ forum and found a number of available intents in various threads - before I get to work on them, is there a list showing all available AQ intents and what they do?
Many thanks, Mike

Re: Is there a complete list of android intents?

Posted: Tue Apr 21, 2020 7:55 pm
by nightcustard
Maybe I should elaborate a little before someone kindly points out that there's a section covering intents in the online help. Yes, there is but the intents and extra listed differ from those discussed in the forum and there appears to be many fewer extras. Maybe my question should read: are the AQ intents limited to those listed in the online help or if are there others, is there a list and short description available? Apologies if it's a stupid question but one lives in hope😉

Re: Is there a complete list of android intents?

Posted: Wed Apr 22, 2020 8:05 am
by Psyberia-Support
Hi and sorry for the delay.
Right now unfortunately there is no clear online help page on intents supported by the application.
So I'm writing one now, but I'll only publish it after version 2.2.5 has been released because there will be some changes (should be in a few days).

But here is the intent that you would need:
Action:
  • "net.psyberia.intent.action.DISPLAY_LOCATION"
Extras:
  • "net.psyberia.intent.extra.TRACK_ID" (String): name of the track in which to save this point (for example "My dog").
  • "net.psyberia.intent.extra.SET_ID" (String): same, but if you want to save the location in a set (separate points) instead of in a track (path).
  • "net.psyberia.intent.extra.LONGITUDE" (double): WGS84 longitude.
  • "net.psyberia.intent.extra.LATITUDE" (double): WGS84 latitude.
  • "net.psyberia.intent.extra.ELEVATION" (double): WGS84 elevation in meter.
  • "net.psyberia.intent.extra.NAME" (String): name of the point (ignored if saved into a track).
  • "net.psyberia.intent.extra.COMMENT" (String): comment of the point (ignored if saved into a track).
  • "net.psyberia.intent.extra.DESCRIPTION" (String): description of the point (ignored if saved into a track).
  • "net.psyberia.intent.extra.ICON" (String): icon of the point (ignored if saved into a track).
Note that this feature is not intensively used and tested, so let me know if you see anything suspicious.

Re: Is there a complete list of android intents?

Posted: Wed Apr 22, 2020 5:18 pm
by nightcustard
Many thanks for the comprehensive reply! I'll have a play 😁 and let you know if I see anything odd. One immediate question: are the lat and long extras in d.m.s, decimal degrees or in whatever format is chosen in 'settings'? Cheers Mike

Re: Is there a complete list of android intents?

Posted: Wed Apr 22, 2020 9:37 pm
by nightcustard
Hi again - I've got the intent working, which is great and thanks for your help. Is there an intent to remove the previous marker, so only the latest position is shown? An alternative could be to delete the whole set of markers before closing AQ, I guess. Apologies if it's obvious! Cheers Mike

Re: Is there a complete list of android intents?

Posted: Thu Apr 23, 2020 10:38 am
by Psyberia-Support
Hi again,
You can add this extra string (sorry I forgot it):
net.psyberia.intent.extra.MEM_ID = "My dog".

So each new point with this memory id will replace the previous one.

Re: Is there a complete list of android intents?

Posted: Thu Apr 23, 2020 2:52 pm
by nightcustard
Excellent! I'll give it a shot - many thanks 😁😁😁

Re: Is there a complete list of android intents?

Posted: Thu Apr 23, 2020 3:12 pm
by nightcustard
Excellent! I'll give it a shot - many thanks 😁😁😁
Update: it works perfectly - just one point shown, which itself is deleted next time the same ID is used.
Hopefully one last question* - the ICON extra is a string parameter - how does this work? Is it the location of an icon file? What format should the icon file be?
* actually three questions 😉

Re: Is there a complete list of android intents?

Posted: Thu Apr 23, 2020 8:25 pm
by nightcustard
Re. my last question about icons - please ignore, I read the help file and the answer was there 🙄

Re: Is there a complete list of android intents?

Posted: Tue Apr 28, 2020 1:17 pm
by Psyberia-Support
For information, I've created this help page on intents: https://www.alpinequest.net/en/help/v2/intents (as of version 2.2.5).