Redirect user to Google Maps Android app to show directions

I am working in an Android application and I have two Geo points. I want the user to redirect the google map android app from my app to show directions on the map. How to transfer two geoinformers to google maps android app to show direction in google maps app.

+3
android google-maps android-maps-v2 android-maps


source to share


1 answer


Here's an example showing directions in a Google Maps app using intent.

From the linked answer:



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);

      

+5


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics