我如何检查我是否从android中的特定位置移走了 [英] how can i check that i moved from a particular location in android
本文介绍了我如何检查我是否从android中的特定位置移走了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何检查我是否已从android中的特定位置移出,以及当我从特定位置移出时,我想获得警报.我想要该代码
how can i check that i moved from a particular location in android and when i move from a particular location i want to get an alert.i want the code for that
推荐答案
嗨
要获取当前位置更新,可以使用android location provider:
http://developer.android.com/guide/topics/location/obtaining-user- location.html [^ ]
当您在定义的区域内时,要获取警报,可以使用接近警报:
[
Hi
to get current location updates you can use android location provider :
http://developer.android.com/guide/topics/location/obtaining-user-location.html[^]
to get alarms when you are inside a defined area you can use proximity alert :
[^]
Best regards !
这篇关于我如何检查我是否从android中的特定位置移走了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文