Commit 5938bf2d by cuiliang.shi

1. 其他错误 amapLocation is null处理

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