I have an app that uses the GPS.
My problem is that when I get to the part that the GPS is looking for a signal and cant find it, it just keeps on searching. This kills the battery.
I used this:
this.locationManager.requestLocationUpdates(this.provider, 0,
0, pendingIntent);
but it only sets the refresh rate. If the GPS is not locked than it keeps on trying.
I want it to stop after a few minutes of trying to get a lock.
What can I do?