Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/381.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
Java 从android代码调用google navigation并设置目的地名称_Java_Android_Google Maps - Fatal编程技术网

Java 从android代码调用google navigation并设置目的地名称

Java 从android代码调用google navigation并设置目的地名称,java,android,google-maps,Java,Android,Google Maps,我从android代码中调用google导航: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q="+sobj.store_latitude+","+sobj.store_longitude)); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); 但是

我从android代码中调用google导航:

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q="+sobj.store_latitude+","+sobj.store_longitude));
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(intent);
但是目的地显示为棋盘格标志。是否有一种方法可以将目的地名称传递给intent,并在单击棋盘格标志时显示