views:

44

answers:

1

Hello,

I want my app to have a proximityAlert until the user removes it. I use expiration -1 to create this proximityAlert. The proximityAlert works. But I find on my Droid phone, after adding a proximityAlert and leaving the phone over night for charging, the proximityAlert does not work the next day. How can I make sure that my proximityAlert is active indefinitely unless the user removes it?

Thanks, Prasanna

A: 

The proximity alert uses a long variable for expiration. Are you putting the number -1 in the proximityAlert or a variable declared as long that equals -1? Maybe using a long variable instead of -1 will fix it.

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