Android:广播接收器获取GPS位置

标签 android broadcastreceiver

我想在用户靠近具有特定 Intent 过滤器的某个 GPS 位置时收到通知:您知道这在 Android 应用中是否可行吗?

最佳答案

如果我对您的理解正确,您应该查看 LocationManager.addProximityAlert(双纬度、双经度、 float 半径、过期时间长、PendingIntent Intent )。当您靠近 GPS 坐标时,PendingIntent 将被触发。

关于Android:广播接收器获取GPS位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5640952/

相关文章:

android - 在列表选择器中选择一个项目后显示文本

android - OnBoot Complete Dagger 2 不工作

android - 将 android "notifications"发送到单独的系统

java - BroadcastReceiver 中的 AlertDialog??可以吗?

Android 无法通过 AlarmManager 传递 Intent Extras

android - 在没有 Activity 的情况下启动应用程序,我的广播接收器不工作

android - Twitter Android 应用程序 - 源代码

java - 如何使用 Eclipse 的自定义 SurroundWith 功能

android - 如何在 android 中的 ItemTouchHelper.SimpleCallback 滑动方法中修复滑动宽度

android - 在 onCreate 中使用 PersistableBundle 时,它​​显示一个空白页面