Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android谷歌地图导航_Android_Google Maps_Android Intent_Navigation - Fatal编程技术网

android谷歌地图导航

android谷歌地图导航,android,google-maps,android-intent,navigation,Android,Google Maps,Android Intent,Navigation,我的问题是我有一个目的地地址,我必须通过用户当前位置的导航显示从当前位置到目的地位置的路线。 我只在stackoverflow中试过一些。。但是没有成功。 我怎样才能达到这个要求 提前谢谢我就是这样做的 Intent NavIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + incAddress)); startActivity(NavIntent); intent启动goog

我的问题是我有一个目的地地址,我必须通过用户当前位置的导航显示从当前位置到目的地位置的路线。

我只在stackoverflow中试过一些。。但是没有成功。

我怎样才能达到这个要求


提前谢谢

我就是这样做的

Intent NavIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + incAddress));
        startActivity(NavIntent);
intent启动google导航并为地址提供方向

我就是这样做的

Intent NavIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=" + incAddress));
        startActivity(NavIntent);

intent启动谷歌导航并为地址提供方向

谢谢。。它对我有用。但导航定位是工作的,只有gps是打开的,但除了gps,我需要选择网络,如从移动网络或wifi获取位置。谢谢。。它对我有用。但导航定位只在gps开启的情况下工作,但除了gps,我需要选择网络,比如从移动网络或wifi获取位置。