获取地点(广播接收器,LocationListener的) [英] Get location ( BroadcastReceiver,LocationListener)

查看:103
本文介绍了获取地点(广播接收器,LocationListener的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android的初学者。我有一个问题。我想,当我收到短信,然后让我的位置(经度和纬度)。我能怎么做。
如果你有样品code,它会更有帮助。

I am beginner at android. I have a question. I want to when I receive SMS then get my location(latitude and longitude). How can I do. if you have sample code, it will be more helpful.

感谢您的帮助。

推荐答案

请参照的这个例子。我希望它可以帮助你。

please refer this example. I hope it helps you.

在这个例子中,当前的位置将是显示屏和触摸位置也将与纬度和经度显示

In this example the current location will be display and touched location will also display with lat-lon.

这篇关于获取地点(广播接收器,LocationListener的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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