Android的位置警报? [英] Location Alarm for Android?

查看:21
本文介绍了Android的位置警报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在启动我的应用程序时,Android 系统会添加几个 POI 坐标.几个小时后,我的应用程序关闭,用户走近他将收到通知的 POI 之一,例如通过状态消息.

When starting my app, several POI coordinates shall be added to the Android System. Some hours later, my app is closed and the user walks close to one of the POI he shall get notified e.g. through a status message.

this 适合我的方案吗?Android中是否有更多可用的东西来实现这一目标?

Is this the right approach for my scenario? Are there more things available in Android to achieve this?

public void addProximityAlert (double纬度,双经度,浮动半径,过期时间,PendingIntent意图)

public void addProximityAlert (double latitude, double longitude, float radius, long expiration, PendingIntent intent)

推荐答案

是的,您可以使用 LocationManageraddProximityAlert() 作为所需功能的基础.

Yes, you would use LocationManager and addProximityAlert() as the basis for your desired feature.

这篇关于Android的位置警报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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