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
  • 649
  • 2
  • 8
  • 22

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,304
  • 8
  • 54
  • 77