0

The class often returns an OLD location. I usually need to run() a couple of times before the correct location is returned. Any thoughts?

Source code:

http://pastebin.com/JacG3JqJ

Dikobraz
  • 579
  • 2
  • 5
  • 21

1 Answers1

0

check this question Android - Reliably getting the current location

and note

   Location location=lm.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
Community
  • 1
  • 1
Mohammad Ersan
  • 12,103
  • 8
  • 52
  • 73