I'm trying to search for a user's location, my problem is that I want to limit the time search by time. That is, if a good enough location was not found after ten seconds or so, return the best location found until that time.
I have an asynctask that activates a location listener. I'm trying to limit the time with android.os.Process.getElapsedCpuTime()
but it only works when I get a location from my location listener that has arrived after the time set.
What I want to do is to keep running the time passed, regaredless of the location listener. How can I do so?