我遵循了http://dev.sygic.com/documentation/custom-url-schema/ & http://help.sygic.com/entries/22207668-Developers-Only-Sygic-implementation-to-your-app-Android-SDK-iPhone-SDK-Url-Handler-的指示
我把坐标传递给Sygic 12.991030334592057作为纬度,77.80791163444519作为经度。
另一个com.sygic.aura://coordinate|12.9138|77.6680|drive
然而,Sygic说,坐标在地图之外。
String str = "http://com.sygic.aura/coordinate|" + latitude + "|"
+ longitude + "|" + type.toString();
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(str)));我也试过
String str = "com.sygic.aura://coordinate|" + latitude + "|"
+ longitude + "|" + type.toString();
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(str)));编辑:类型为enum。type.toString将驱动器显示为字符串。
我做错了什么?
发布于 2014-06-17 08:05:33
也有同样的问题。正如恩利所说,莱昂帕拉姆的顺序正好相反。这段代码适用于我:
String str = "com.sygic.aura://coordinate|" + lon + "|" + lat + "|" + type.toString();
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(str)));在我的手机中,这个例子电话启动了sygic并启动了导航:
com.sygic.aura://coordinate|-3.588678|37.176278|drive希望它能帮上忙
发布于 2014-03-06 16:40:08
你的代码没有什么问题。你确定经度和纬度的值是正确的吗?你是用哪份申请得到这些协调的?
我今天在处理相同的代码,似乎我在纬度的位置使用了经度,反之亦然。试着互换协调器。在我和你在同一条船上的时候对我有用。如果情况并非如此,请通过手动导航到该位置(从菜单>导航到.> GPS坐标。
https://stackoverflow.com/questions/21535633
复制相似问题