得到谷歌地图活动选择的位置位置、地图

2023-09-13 00:11:54 作者:记得.

我试图返回通过在谷歌地图Android应用程序的用户选择的位置,但我似乎无法找到如何实现这一任务的信息。

I'm trying to return the location selected by the user in the Google Maps Android application, but I can't seem to find information about how to achieve this task.

我创建一个Intent打开GMaps实现活动,但是用户不能在地图上选择一个点也不活动返回一个指向我的应用程序时,它被关闭。

I created an Intent to open the GMaps Activity, but the user can't select a point on the map nor does the Activity return a point to my application when it is closed.

我用 startActiviyForResult ,因为我期待的结果从活动回来了。

I'm using startActiviyForResult, since I'm expecting a result back from the Activity.

推荐答案

使用谷歌API。你只需要创建自己的MapActivity与图形页面。 下面是谷歌API 伟大的教程包括手指水龙头接收位置。希望这会有所帮助。

use Google API. You just need to create your own MapActivity with MapView. Here is great tutorial on Google API Including receiving location on finger taps. Hope this will help.