google play services - Android, Getting inconsistency in User Current Location.? -


i new in android , wanna user current location using gps_provider, every time getting different-different location how can use google play services. , best way accurate location in android. you.

in general there 2 different types of locations available through android api.

one gps-location works outdoors , has accuaracy between 5m , 50m.

the other kind of location called network-location loaction measure based on wifi networks in surrounding , gsm-base-stations have accuracy between 100m , 1500m. localization technique works indoors, because requires smartphone have network access. accuaracy gets better in urban areas lot of wifi , gsm-base-stations located. more gsm-base-station / wifi hotspos available better accurarcy of loation measurement. can down 5m.

when requesting such location google internally magic compute position. request requires internet connection (you don't need explicitly give permission). interanally android sends request google server contains fingerprints of surrounding gsm-base-stations , afterwards computes location (if curious can find code here). gps-bases location location accurarcy same on world without internet connection, works outdoors.

with applications implemented logic detects if gps present or not , if not switched network localization, works fine.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -