Android(安卓)调用系统地图(Google Map)并显示具体方位
16lz
2021-01-26
“大众点评” Android App 的商家定位是使用的Google Map,当点击一个商家的地址时,系统会自动调用Google Map,并将商家方位显示出来,这是怎么做到的呢?
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://ditu.google.cn/maps?hl=zh&mrt=loc&q=31.1198723,121.1099877(上海青浦大街100号)");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK & Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
更多相关文章
- 购物车(retrofit2+rxjava2+dagger+fresco+butterknife+xrecycler
- Android(安卓)仿美团大众字母索引实现
- [Android]simplelistadapter 与数据库绑定显示list 并且根据数据
- android与Web服务器交互时的cookie使用-兼谈大众点评数据获得(原
- 【资源介绍】iGou Android(安卓)开发视频教程
- android 如何得到SD卡的目录
- android html唤醒APP(原生)
- 【Android】高仿大众点评中的范围选择控件之RangeSeekBar
- Android(安卓)仿美团网,大众点评购买框悬浮效果之修改版