How to time out GPS signal acquisition

Discussion in 'Android App Developers' started by GPSmaster, Apr 19, 2011.

  1. GPSmaster

    GPSmaster New Member

    Mar 19, 2011
    Likes Received:
    Trophy Points:
    My app uses the LocationListener to get one position fix and then removeUpdates() once every minute (to conserve battery). The problem is that if a user moves inside then it will perpetually look for a signal, burning more battery. I was wondering if anyone knows of a public method within Location Manager I can use to removeUpdates if a signal isn't acquired within 15 seconds. I would then check for a position fix every five minutes until the user moves back outdoors. Does this make sense? Maybe there is a better method to timeout GPS signal acquisition? I have looked through the Location Manager public methods but I can't seem to find a way to do it. Thanks so much for your help! -Dom
Search tags for this page

gps timeout android