Use pre-installed Google Maps instead of native activity with Intents?
I just wanted to know if it is possible to transfer geocoders to Google Maps of the bis app or something similar.
I've written an app to display route, coordination, etc., but wouldn't it be more elegant to ask google maps to display this?
I don't know if this is possible, but perhaps one of you can answer this question.
IF POSSIBLE, is it also possible to ask google maps to calculate the route with my CURRENT POSITION?
It would be great if one of you could show me the skeleton / layout code. I have no idea what these intentions should look like.
a source to share
The Google Intents documentation is here: https://developer.android.com/guide/appendix/g-app-intents.html
Unfortunately this (as far as I know) is currently limited to just displaying the location and not the route. The user can then use this location to build their own route.
a source to share
There is a way, but you will need to get the coordinates of your current location yourself (setting up the location receiver). Once you have your location and destination coordinates, miss this intent (this will allow the user to choose between Google Maps or the browser):
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActivity(intent);
a source to share
IF POSSIBLE, is it also possible to request Google Maps to calculate the route to my CURRENT POSITION?
No. The only documented one Intents
just opens the map at the point. There is currently no documented Intents
way to run directly into the navigation portion of the app.
Unfortunately!
a source to share