go sgenq
go sgenq

Reputation: 323

do not call onLocationChanged if not moved more than 10 meters

Is there a way to restrict the call to onLocationChanged if user has not moved 10 meters or more.

I am using google map with map fragment.

Upvotes: 0

Views: 471

Answers (2)

Sandeep Kumar
Sandeep Kumar

Reputation: 1202

Initialize location manager with parameter minimum distance to 10 and minimum time to 0 .

http://blog.doityourselfandroid.com/2010/12/25/understanding-locationlistener-android/

Upvotes: 1

Related Questions