3

I've read the documentation and this.

What I don't understand is why this function isBetterLocation() even exists. The function tells the difference between "current location fix" and "new location". But what are those 2 locations really?

I can think of

  • Last location stored in application preferences, database etc. and location retrieved from location provider e.g. GPS
  • Location retrieved from location provider and latest location gotten through onLocationChanged()

In either case, the latter is more up-to-date; therefore, more accurate. So, why bother making comparison at all?
The only explanation I can think of is that more up-to-date location information isn't always more accurate. Is that true?

Community
  • 1
  • 1
ericn
  • 12,476
  • 16
  • 84
  • 127

1 Answers1

0

Take a look here http://developer.android.com/guide/topics/location/strategies.html, there is an explanation on this page (android documentation)

Quanturium
  • 5,698
  • 2
  • 30
  • 36
  • 1
    Thanks @Quanturium, as mentioned above, I've already read such documentation but it doesn't answer my question – ericn May 21 '13 at 23:49