Best way to implement proximity alerts android

Hi I am developing android application and in my application i wanted to proximity alert for few location and those location are dynamic points mean location list can be change dynamically according users current location.

so I implemented proximity alerts in my application its working fine with entering and exiting events. But problem is that if I set expiration time as -1 it continuously uses GPS which drains device battery.

If I set expiration time then it stop searching for that location after expiration time exceeds.

And another question setting multiple proximity alerts causes battery consumption heavily?

How to use proximity alerts efficiently. Is there any better way to handle this scenario.

Need help.. Thank you...


Look this post, it has a nice example about your question: Android Proximity Alerts Tutorial

From Professional Android Sensor Programming By Greg Milette, Adam Stroud:

Need Your Help

Alias for clang options?

c bash shell alias zsh

I got a question, at school we compile C with this command :

Make ImageView appear like in Safari Top Sies

iphone ios

You may have seen that images are placed in a curved screen when we open Safari browser and click on Net Tab. It is listed under top sites. So my question is I have a UIImageview and I need to make...