The best way to implement proximity alerts

Hi, I am developing an application for Android and in my application I wanted to receive a proximity alert for a small location, and this location is a dynamic point. The average list of locations can dynamically change depending on the current location of users.

so I applied proximity alerts in my application, working with inbound and outbound events. But the problem is that if I set the expiration time to -1, it constantly uses GPS, which drains the device’s battery.

If I set an expiration time, it will stop searching for this location after the expiration date.

And another question setting up some proximity warnings significantly increases battery consumption?

How to effectively use proximity alerts. Is there a better way to handle this scenario.

Need help .. Thanks ...

+4
source share
1 answer

Check out this post, it has a good example about your question: Android Notification Tutorial App

From Professional Android Sensor Programming . Greg Milette, Adam Stroud: Book screenshot

+2
source

All Articles