Android:在步行模式下开始导航

Spi*_*pau 6 navigation android android-intent

我正在尝试启动导航的Intent:

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + item.getPoint().getLatitudeE6()/1E6 + ","+item.getPoint().getLongitudeE6()/1E6)));
Run Code Online (Sandbox Code Playgroud)

这很好,但导航在驾驶模式下开始.如何在步行模式下开始导航?

干嘛,保罗

小智 15

这应该工作正常:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("google.navigation:q=your+address&mode=w"));
       startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

问候.