Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
石璀亮
/
agenew_a16_sos
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 14b3e20d
authored
Apr 24, 2019
by
cuiliang.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.9
1 parent
6f587c0c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/build.gradle
app/src/main/java/com/agenew/location_server/application/BirdService.java
app/build.gradle
View file @
14b3e20
...
@@ -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
{
...
...
app/src/main/java/com/agenew/location_server/application/BirdService.java
View file @
14b3e20
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment