android - Problem in getting location updates periodically -


I'm using Location Manager to get location updates. I used location manager's request location measures (provider, timen milliseconds, distance difference, listener).

When I offer a minimum 30-second delay to get the next location update, I think it should be new to 30 seconds

I also specify the minimum distance Tried, yet I could not find what I did not expect.

What do I need to get the place after every 10 minutes after update or 100 meters distance periodically but I do not want to use any timer thread or for any calculation To ensure that I have gone 100 meters.

Is it possible to use only the Location Manager?

I get 30 to get the next location update When I give a minimum delay of seconds, I believe that it should rest for 30 seconds to request new location updates.

This is a faulty assumption

But what I saw is not happening like this.

Correct. The date range you specify is only an indication. The distance you specify should be given as a filter.

What do I need to get location updates every 10 minutes or after running 100 meters distance from time to time

Okay.

But I do not want to use any timer thread or to ensure any calculation that I have taken 100 meters away.

You will need something to know at the end of 10 minutes.

Is it possible to use only the Location Manager?

No, sorry.

Comments