Launch Google Navigation from another location without setting a location

This is probably really stupid, but how can I start Google navigation WITHOUT setting the location, since there seem to be a lot of problems ... When I try to do this, it actually launches Google Navigation, but then just saves the restart of Activity ... By in fact, I worked as if you clicked on β€œNavigation”, as on the main screen ... So, with a list of destinations, etc. I suppose this could be another event? I have no idea the intention that I use is below

Intent i = new Intent(Intent.ACTION_VIEW); i.setClassName("com.google.android.apps.maps", "com.google.android.maps.driveabout.app.NavigationActivity"); getContext().startActivity(i); 
+4
source share
1 answer

Finally it turned out what kind of activity you need to start !!!

  Intent i = new Intent(); i.setClassName("com.google.android.apps.maps","com.google.android.maps.driveabout.app.DestinationActivity"); startActivity(i); 
+5
source

Source: https://habr.com/ru/post/1389291/


All Articles