Commit 14b3e20d by cuiliang.shi

1.9

1 parent 6f587c0c
...@@ -6,8 +6,8 @@ android { ...@@ -6,8 +6,8 @@ android {
applicationId "com.agenew.location_server.application" applicationId "com.agenew.location_server.application"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 28 targetSdkVersion 28
versionCode 9 versionCode 10
versionName "1.9" versionName "2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
buildTypes { buildTypes {
......
...@@ -127,7 +127,7 @@ public class BirdService extends Service { ...@@ -127,7 +127,7 @@ public class BirdService extends Service {
+ ", cfgv: " + ret_cfgv + ", path: " + mPath); + ", cfgv: " + ret_cfgv + ", path: " + mPath);
searchGPS(); searchGPS();
IotApi.init(); // IotApi.init();
mHandler.sendEmptyMessageDelayed(0, 1000); mHandler.sendEmptyMessageDelayed(0, 1000);
return super.onStartCommand(intent, flags, startId); return super.onStartCommand(intent, flags, startId);
...@@ -404,7 +404,7 @@ public class BirdService extends Service { ...@@ -404,7 +404,7 @@ public class BirdService extends Service {
} catch (Exception e) { } catch (Exception e) {
Log.d(TAG, "Exception:" + e.toString()); Log.d(TAG, "Exception:" + e.toString());
setAlarm();
mErrorCount++; mErrorCount++;
if (mErrorCount > 5){ if (mErrorCount > 5){
setAlarm(); setAlarm();
...@@ -647,7 +647,7 @@ public class BirdService extends Service { ...@@ -647,7 +647,7 @@ public class BirdService extends Service {
+ ", cfgv: " + ret_cfgv + ", path: " + mPath); + ", cfgv: " + ret_cfgv + ", path: " + mPath);
searchGPS(); searchGPS();
IotApi.init(); // IotApi.init();
mHandler.sendEmptyMessageDelayed(0, 1000); mHandler.sendEmptyMessageDelayed(0, 1000);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!