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 76f67bbc
authored
Apr 20, 2019
by
cuiliang.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置超时时间
1 parent
1de34f58
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
.idea/caches/gradle_models.ser
app/build.gradle
app/release/LocationServer.apk
app/release/output.json
app/src/main/java/com/agenew/location_server/application/BirdService.java
app/src/main/java/com/agenew/location_server/application/api/IotApi.java
.idea/caches/gradle_models.ser
View file @
76f67bb
No preview for this file type
app/build.gradle
View file @
76f67bb
...
...
@@ -6,8 +6,8 @@ android {
applicationId
"com.agenew.location_server.application"
minSdkVersion
23
targetSdkVersion
28
versionCode
6
versionName
"1.
6
"
versionCode
7
versionName
"1.
7
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes
{
...
...
app/release/LocationServer.apk
View file @
76f67bb
No preview for this file type
app/release/output.json
View file @
76f67bb
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
6
,
"versionName"
:
"1.6"
,
"enabled"
:
true
,
"outputFile"
:
"LocationServer.apk"
,
"fullName"
:
"release"
,
"baseName"
:
"release"
},
"path"
:
"LocationServer.apk"
,
"properties"
:{}}]
\ No newline at end of file
[{
"outputType"
:{
"type"
:
"APK"
},
"apkInfo"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
7
,
"versionName"
:
"1.7"
,
"enabled"
:
true
,
"outputFile"
:
"LocationServer.apk"
,
"fullName"
:
"release"
,
"baseName"
:
"release"
},
"path"
:
"LocationServer.apk"
,
"properties"
:{}}]
\ No newline at end of file
app/src/main/java/com/agenew/location_server/application/BirdService.java
View file @
76f67bb
...
...
@@ -390,7 +390,7 @@ public class BirdService extends Service {
@Override
public
void
onFailed
(
Exception
e
)
{
Log
.
d
(
TAG
,
"Exception:"
+
e
.
toString
());
Log
.
d
(
TAG
,
"
onFailed
Exception:"
+
e
.
toString
());
setAlarm
();
/*mErrorCount++;
if (mErrorCount > 5){
...
...
app/src/main/java/com/agenew/location_server/application/api/IotApi.java
View file @
76f67bb
...
...
@@ -40,7 +40,7 @@ public class IotApi {
.
writeTimeout
(
TIME_OUT_WRITE
,
TimeUnit
.
SECONDS
)
.
connectTimeout
(
TIME_OUT_CONNECT
,
TimeUnit
.
SECONDS
);
try
{
/*
try{
MyOkHttpRetryInterceptor myOkHttpRetryInterceptor = new MyOkHttpRetryInterceptor.Builder()
.executionCount(3)
.retryInterval(1000)
...
...
@@ -48,7 +48,7 @@ public class IotApi {
okHttpClientBuilder.addInterceptor(myOkHttpRetryInterceptor);
}catch (Exception e){
Log.d(TAG, e.toString());
}
}
*/
sHttpExecutor
=
new
HttpExecutor
(
okHttpClientBuilder
.
build
());
}
...
...
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