当前位置:
代码迷
>>
Android
>> 定位出中纬度用自带的locationManager还是用第三方的SDK
详细解决方案
定位出中纬度用自带的locationManager还是用第三方的SDK
热度:
65
发布时间:
2016-04-28 02:29:58.0
定位出经纬度用自带的locationManager还是用第三方的SDK
用自带的locationManager.getLastKnownLocation(provider);,老是返回null,用while循环也是没有返回。
现在定位用第三方SDK吗?比如百度?
------解决思路----------------------
如果使用wifi或基站定位建议使用baidu,数据准,覆盖度高,而且不依赖于手机,如果只使用gps定位,直接用系统自带的就行。了。
查看全文
相关解决方案
关于定位的~LocationManager 获取到的Location一直为null解决办法
LocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)总是为false解决办法
LocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)老是为false
Android LocationManager 应用
LocationManager 可用却失去NULL