| | |
| | | import com.baidu.location.LocationClientOption; |
| | | import com.dayu.pipirrapp.R; |
| | | import com.dayu.pipirrapp.activity.MainActivity; |
| | | import com.dayu.pipirrapp.bean.LatLonBean; |
| | | import com.dayu.pipirrapp.bean.db.LatLonBean; |
| | | import com.dayu.pipirrapp.utils.MyLog; |
| | | import com.jeremyliao.liveeventbus.LiveEventBus; |
| | | import com.tencent.bugly.crashreport.CrashReport; |
| | |
| | | super.onCreate(); |
| | | |
| | | createNativeLocation(); |
| | | createBDLocation(); |
| | | // createBDLocation(); |
| | | } |
| | | |
| | | |
| | |
| | | if (locationManager != null) { |
| | | locationManager.removeUpdates(listener); |
| | | } |
| | | if (mBDLocationClient != null) { |
| | | mBDLocationClient.stop(); |
| | | mBDLocationClient.unRegisterLocationListener(mBDLocationListener); |
| | | } |
| | | // if (mBDLocationClient != null) { |
| | | // mBDLocationClient.stop(); |
| | | // mBDLocationClient.unRegisterLocationListener(mBDLocationListener); |
| | | // } |
| | | |
| | | } catch (Exception e) { |
| | | CrashReport.postCatchedException(e); |