Browse Source

彻底解决百度地图无法定位顽疾问题-10-12;

Arison 9 years ago
parent
commit
8e0afa8b58

+ 2 - 2
WeiChat/src/main/java/com/xzjmyk/pm/activity/BdLocationHelper.java

@@ -77,7 +77,7 @@ public class BdLocationHelper {
             if (scanSpan < 1000) {
                 mLocationClient.getLocOption().setScanSpan(5000);
             }
-            Log.i("roamaer", "requestLocation:setScanSpan!" );
+         
         }
     }
 
@@ -136,7 +136,7 @@ public class BdLocationHelper {
                 Log.d(AppConfig.TAG, "resultCode:"+resultCode);
                 ToastUtil.showToast(mContext, "定位码:" + resultCode);
             }
-            mLocationClient.stop();
+            release();
             // if (isTimingScan()) {// 停止定时定位
             // mLocationClient.getLocOption().setScanSpan(100);
             // }

+ 1 - 0
WeiChat/src/main/java/com/xzjmyk/pm/activity/ui/erp/fragment/SigninFragment.java

@@ -243,6 +243,7 @@ public class SigninFragment extends EasyFragment implements View.OnClickListener
         title = (TextView) view.findViewById(R.id.title);
         bar.setCustomView(view);
         locationHelper = MyApplication.getInstance().getBdLocationHelper();//获取对象
+        locationHelper.release();
         init();
         initView();
         listener();