i have an address for a location. when i click some button in my app. it should redirect to default google map in android and drop the pin to that particular location. how to do that? Any Idea?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
The Android documentation describes the various
Intents
that the Google Maps application will respond to, if it exists on a given device. You will presumably want ageo:0,0?q=my+street+address
Uri
on anACTION_VIEW
Intent
.Here is an example of how I did it using a "View on map" button. Posting here to help others in need because It took me the whole day to figure it out:
http://randroidblog.blogspot.com/2012/01/view-on-map-activity.html