I'm trying to start an Intent for a navigation:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + item.getPoint().getLatitudeE6()/1E6 + ","+item.getPoint().getLongitudeE6()/1E6)));
This works fine, but the navigation starts in driving mode. How do I start the navigation in walking mode?
1. In the Google Maps app, enter your destination and tap Directions. 2. Select the Walking icon at the top of the map screen.
This should work fine:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("google.navigation:q=your+address&mode=w"));
startActivity(intent);
Regards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With