Commit 5938bf2d by cuiliang.shi

1. 其他错误 amapLocation is null处理

2. 设置中 本机号码 显示修改
1 parent 0e07956c
......@@ -40,8 +40,8 @@ import org.json.JSONObject;
public class LocationService extends Service {
private String TAG = "LocationService";
private String mLongitude;
private String mLatitude;
private String mLongitude = "";
private String mLatitude = "";
private double mWifiLatitude = 0;
private double mWifiLongitude = 0;
private double mGpsLatitude = 0;
......@@ -350,6 +350,11 @@ public class LocationService extends Service {
Log.d(TAG, "handlerGpsError");
mErrorCount++;
if (mErrorCount > 6) {
if(!"".equals(mLongitude) && !"".equals(mLatitude)){
postLocationInfo();
}
handleGpsRelease();
alarmToSendBroadcastForNextStartService();
}
......
......@@ -20,7 +20,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="套餐手机号:"
android:text="本机号码:"
android:textSize="18px" />
<LinearLayout
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!