从Android应用中的默认Google地图上放置图钉?

时间:2010-04-21 13:29:19

标签: android google-maps android-mapview android-maps

我有一个位置的地址。当我点击我的应用程序中的一些按钮。它应该重定向到android中的默认谷歌地图并将引脚放到该特定位置。怎么做?有什么想法吗?

2 个答案:

答案 0 :(得分:5)

Android documentation描述了Google地图应用程序将响应的各种Intents(如果它存在于给定设备上)。您可能希望geo:0,0?q=my+street+address Uri上有ACTION_VIEW Intent

答案 1 :(得分:0)

以下是我使用“在地图上查看”按钮的方式示例。在这里发帖帮助其他有需要的人因为我花了一整天的时间来弄明白:

http://randroidblog.blogspot.com/2012/01/view-on-map-activity.html