📜  android 编码如何打开地图 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:33.783000             🧑  作者: Mango

代码示例1
//Moves you to different intent with the map on it

String uri = String.format(Locale.ENGLISH, "geo:%f,%f", latitude, longitude);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
context.startActivity(intent);