导航Android和谷歌地图 [英] Navigation Android and Google Maps
本文介绍了导航Android和谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用谷歌导航在我的应用程序。
I am using google navigation in my app.
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("google.navigation:q=53.3,21.7"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
什么办法在我的应用程序打开该导航使用自定义设置?
Is any way to open this navigation in my app with custom settings?
推荐答案
试试这个:
浮动纬度= 53.3f;
浮动液化天然气= 21.7f;
float lat = 53.3f; float lng = 21.7f;
String maplLabel = "ABC Label";
final Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:0,0?q="+lat+","+lng+"&z=16 (" + maplLabel + ")"));
startActivity(intent);
在这种方式,你打开外部应用程序映射。
In this way, you open the external App maps.
这篇关于导航Android和谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文