-3

I'm making an app. I want a button which open google maps app with this 49.019571, 8.412362 position. Is that possible? I found nothing. I hope you can help me. Only the extra Maps app nothing in the app.

4

1 回答 1

0

遵循本教程它将有所帮助

编辑 如果您有地图应该打开的特定坐标,那么您可以使用以下代码启动意图

String uri = String.format(Locale.ENGLISH, "geo:%f,%f", latitude, longitude);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
context.startActivity(intent);  
于 2013-05-23T15:10:22.420 回答