接近警报的位置坐标存储在服务器 [英] Proximity Alert for location coordinates stored in server

查看:164
本文介绍了接近警报的位置坐标存储在服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新到Android编程。我要特别强调可以创建基于坐标存储在服务器的位置接近警报的应用程序,这是与存储在服务器比较用户的当前位置,如果该位置是一个特定的范围内生成警报。有什么办法来创建存储在服务器位置接近警报?或者是有这个问题的更好的办法?

I am new to android programming. I want to make an app that can create proximity alerts based on the location coordinates stored in a server, that is compare user's current location with those stored in server and generate an alert if the location is within a particular radius. Is there any way to create proximity alerts for locations stored in a server ? Or is there any better approach for this problem ?

感谢

推荐答案

在机器人的很简单做到这一点。

In android its quite simple to do that.

请,看看这个类

http://developer.android.com/reference/android/location/ LocationManager.html

尤其是在这个方法:

  addProximityAlert(double, double, float, long, android.app.PendingIntent);

这正是你所需要的。

在Android SDK文档真的做得很好。就拿总是一看那里! :D

The android SDK docs are really well done. Take always a look there ! :D

这篇关于接近警报的位置坐标存储在服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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