Android 百度定位过滤经纬度为4.9E-324的数据
·
在BDAbstractLocationListener接口回调中处理:
public class MyLocationListener extends BDAbstractLocationListener {
@Override
public void onReceiveLocation(BDLocation location){
if (null != location && "4.9E-324".equals(String.valueOf(location.getLatitude())))
return;
if (null != location
&& location.getLocType() != BDLocation.TypeServerError
&& location.getLocType() != BDLocation.TypeServerCheckKeyError) {
//编写你的代码
}
}
}
更多推荐
所有评论(0)