Android GPS Provider

别说谁变了你拦得住时间么 提交于 2019-12-10 11:46:16

问题


I'm developing an android application that involves the detection of the users' location. What I would like to know is, how does this -> LocationManager.GPS_PROVIDER work?

Does it uses the GPS system in the phone or does it uses the mobile company's area network location?

Whenever I turn on the GPS system in my phone, the map would not load. It will only be able to detect & pinpoint the location when I deactivate it. I think the application is tapping into the GPRS or something.

Thanks.


回答1:


LocationManager.GPS_PROVIDER uses GPS and LocationManager.NETWORK_PROVIDER uses mobile network. Map application works with both of them, it displays the most accurate data that is available from any of the providers.




回答2:


In reality, GPS is accompanied with Wi-fi or 3G to location searching because the GPS providers is not always available.



来源:https://stackoverflow.com/questions/3164145/android-gps-provider

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!