android - locationManager.requestLocationUpdates不能执行
PHP中文网
PHP中文网 2017-04-17 15:54:21
0
1
796

通过设置locationManager.requestLocationUpdates来获取地理位置,之前很多手机都能正常执行,但是有一台Android 5.1.1的机器怎么都不会触发onLocationChanged 获取不到地理位置信息。权限网络都是正常,相同代码在另外的机器上能获取到地理信息,请问是否有人遇到过类似的问题?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
PHPzhong

I encountered it. Some mobile phones may not be 5.1.1. I have tested a 4.1 mobile phone, a 5.1.1 mobile phone, and a 4.4.4 tablet, and they all have this problem. Many other mobile phones do not have this problem. I suspect that some systems did not handle locationMgr well. Maybe they requested Google services?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template