得到谷歌地图活动选择的位置 [英] Get selected location from Google Maps activity

查看:160
本文介绍了得到谷歌地图活动选择的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图返回通过在谷歌地图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.

这篇关于得到谷歌地图活动选择的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆