我想在用户靠近具有特定 Intent 过滤器的某个 GPS 位置时收到通知:您知道这在 Android 应用中是否可行吗?
最佳答案
如果我对您的理解正确,您应该查看 LocationManager.addProximityAlert(双纬度、双经度、 float 半径、过期时间长、PendingIntent Intent )
。当您靠近 GPS 坐标时,PendingIntent
将被触发。
关于Android:广播接收器获取GPS位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5640952/