Tasker and OsmAnd

387 views
Skip to first unread message

Hugo Lopez

unread,
Feb 8, 2014, 5:12:18 AM2/8/14
to osm...@googlegroups.com
Hi

I have just gotten into tasker (automation app for Android) and Im trying to automatize basic tasks related to OsmAnd. I have two issues.

First, Im using the bluetooth car radio signal as trigger. So when tasker detects it, it turns on the gps and starts OsmAnd+. The problem I have is OsmAnd+ gives me the initial menu screen and I would like it to open directly on the map screen (centered in my present location if there is a gps fix even better). How can I open OsmAnd+ directly into the map screen?

Secondly, I use the parking plugin and love it, so I would like to be able to automatize it. Basically I would like Tasker to be able to set and unset the parking position, so it gets marked automatically when the phone disconnects from the bluetooth signal and viceversa. Im sure this will be more 'problematic', but Ive done some Android coding and I would like to contribute the code to add this functionality to the pluging if its not there already. So can anyone confirm whether this is or isnt possible at the moment? In case its not possible I think adding an intent to the plugin is the way to go, but Im open to suggestions.

Also, if anyone is already using OsmAnd and Tasker together, suggestions are welcome.

Hugo

Message has been deleted

Rodolfo

unread,
Feb 8, 2014, 12:26:12 PM2/8/14
to osm...@googlegroups.com
To answer your first question: Yes, you can start Osmand directly in the map screen from a Tasker task by using the Secure Settings plugin.
Create a new task and insert the action: plugin -> Secure Settings -> Edit -> Launch Acttivity.
There, first choose Osmand as the app, then select the MapActivity.
This seems to work ok, but because you bypass the normal startup screen, I don't know if Osmand misses some global environment settings now. Please test it before relying on it.
I cannot answer your second question, but I think you are right, that this will be more difficult.
Rodolfo

Hugo Lopez

unread,
Jul 1, 2014, 12:28:32 PM7/1/14
to osm...@googlegroups.com
Getting back to this now that I have more time, I have been looking at the source code of the Parking Plugin and I dont really see how it does what it does. I only see the part of creating intents to talk to OsmAnd. Is there any docs as to how to create a plugin for OsmAnd that I could read to understand it better? I have not found it in the google code page docs.

Also, who should I contact in regards of the parking plugin?

Thanks

Hugo

Reply all
Reply to author
Forward
0 new messages