Android 使用指定的经度和纬度打开Google地图
本文向大家介绍Android 使用指定的经度和纬度打开Google地图,包括了Android 使用指定的经度和纬度打开Google地图的使用技巧和注意事项,需要的朋友参考一下
示例
您可以使用Intent将应用程序的经度和纬度传递到Google映射
String uri = String.format(Locale.ENGLISH, "http://maps.google.com/maps?q=loc:%f,%f", 28.43242324,77.8977673); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); startActivity(intent);