android: can get location with LocationManager with Samsung Galaxy S2 in 30 seconds

…衆ロ難τιáo~ 提交于 2019-12-12 21:13:08

问题


I use LocationManager.requestLocationUpdates to request location for both GPS and network provider, and the location settings is selected in "Location and security" settings. But onLocationChanged is never called in 30 seconds. However, the code works well on other cellphone such as HTC desire. But i found there is other app such as Renren can get location in Samsung Galaxy S2. Could you anyone help to solve the problem?


回答1:


You must be from china. And your galaxy S2 is sold only in china! we call it (行货). The locationManager can't work well because The google service is removed from the phone.

And. You can query the location directly with your WIFI and Cell-tower. http://www.google.com/loc/json



来源:https://stackoverflow.com/questions/10038282/android-can-get-location-with-locationmanager-with-samsung-galaxy-s2-in-30-seco

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