2017-07-21 2 views

Répondre

1

essayez ceci:

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

Ou si ne fonctionne pas, essayez ceci selon ce lien https://developers.google.com/maps/documentation/urls/guide:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
     Uri.parse("https://www.google.com/maps/search/?api=1&query=47.5951518,-122.3316393")); 
    startActivity(intent);