I have a problem with the proximityAlert function. I develop a
navigation software, which reads some gps data out of a gpx file.
Then I write the first gps point in the addProximityAlert function.
When I am near this point, I want to raise an index to get the next
position from the gpx file (I save all positions in an array). But
sometimes the ProximityAlert fires one time, but sometimes it
fires 3 times or more? I think thats a problem with the expiration
time. I choose -1 (never expire). But if I use a value like 2000 (2
seconds), the alert fires only, if i reach the position in the next 2
I have try to use the removeProximityAlert function (I have a global
PendingIntent variable therefore).
But then it fires 6 times instead of 3 times ?!
I have also test to use multiple PendingInten variables and add them
all with the addProximityAlert function. But then the ProximityAlert
of the third point can fire before the first or second point?!
Here is a part of my code:
Example gps-data in file:
lat, lon 3 3
lat, lon 10 10
The output via Toast and telnet consoloe:
1. geo fix 3 3: Treasure: true (1x)
2. geo fix 5 5: Treasure: false (1x)
3. geo fix 7 7: no output
4. geo fix 10 10: Treasure true (3x)
Thanks for help,