I'm looking for a way to give users the option to select which app to mount their route (waze, google maps, uber ...), but it just does not work in google maps.
When I choose it, it only shows the place on the map, but does not open the navigation, as in the others.
Selecting google maps to open the route
Currently I'm doing this:
val gmmIntentUri = Uri.parse("geo:${mClient.lat},${mClient.lng}")
val mapIntent = Intent(Intent.ACTION_VIEW, gmmIntentUri)
startActivity(mapIntent)
I know there is the option to do:
Uri.parse("google.navigation:q=${mClient.lat},${mClient.lng}")
It really opens the google maps navigation cute, but it stops working in all other apps.
I would like a way that works for everyone.