-1

I search a mean like an "shareintent" to launch the user default navigation app from my app.

I search long time on google, i find a mean to start google navigation but i would like to let the choice to my user to start his navigation app (like waze or an other app) there is a way to do that ?

WhatsUp
  • 453
  • 1
  • 5
  • 21

1 Answers1

0

Try this:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?daddr=" + lat + "," + lng));
startActivity(intent);
roccocullo
  • 178
  • 11
  • No because ACTION_VIEW is a generic action. In my case it shows me this dialog https://imageshack.com/i/kpJXaXfyp – roccocullo Oct 16 '14 at 16:36