android - FINE_LOCATION has less accuracy than COARSE_LOCATION -


as per understanding of accessing location on android:

  1. the location provider needs permission access_coarse_location, has lower accuracy, faster in retrieving location.
  2. the gps provider needs permission access_fine_location, has higher accuracy, , slower in retrieving location.

so understand better, ran following code

//go through list of location providers "best" 1 list<string> locationproviders = locationmanager.getallproviders(); (string locationproviderinit : locationproviders) {     log.d(debug_tag, "found locationprovider:" + locationproviderinit);     location lastknownlocation = locationmanager.getlastknownlocation(locationproviderinit);     if (lastknownlocation != null) {         log.d(debug_tag, "accuracy: " + lastknownlocation.getaccuracy());         log.d(debug_tag, "time: " + lastknownlocation.gettime());     } } 

while network location provider consistently give accuracy of 60.0, gps location provider gives accuracy lower & time higher.

not sure why happening.

the accuracy measurement accuracy of location in metres, lower value indicates more precise location. location accurate within 60.0 metres off 60m in direction, whereas location accurate within 5.0 meters off 5m.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -