Use FusedLocationServiceApi without internet connection

风流意气都作罢 提交于 2019-12-24 05:12:25

问题


i've recently created a GPS Location Service which uses FusedLocationProviderAPI from GooglePlayServiceAPI. Everything is working fine except receiving coordinates without an enabled internet connection.

I did a lot of research why this isn't working without an internet connection and i still don't know why. When I am connected to my Wifi it is working fine and the location is being updated perfectly. But when I restart my device and disable wifi and mobile internet it isn't working anymore. When I start the location updates while I am connected to the internet and disable my internet connection the location update is still working. Somehow, it changes then from the internet provider to GPS provider.

Am I doing anything wrong or is it a bug that I am not able to get coordinates without an internet connection.

来源:https://stackoverflow.com/questions/31232911/use-fusedlocationserviceapi-without-internet-connection

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