Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
6
600SeriesAndroidUploader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cgm
uploader
600SeriesAndroidUploader
Commits
073f42ad
Commit
073f42ad
authored
8 years ago
by
Volker Richert
Browse files
Options
Downloads
Patches
Plain Diff
fixing
parent
9476c086
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/info/nightscout/android/upload/nightscout/NightscoutUploadIntentService.java
+3
-1
3 additions, 1 deletion
...roid/upload/nightscout/NightscoutUploadIntentService.java
with
3 additions
and
1 deletion
app/src/main/java/info/nightscout/android/upload/nightscout/NightscoutUploadIntentService.java
+
3
−
1
View file @
073f42ad
...
...
@@ -42,7 +42,7 @@ public class NightscoutUploadIntentService extends IntentService {
private
static
final
SimpleDateFormat
ISO8601_DATE_FORMAT
=
new
SimpleDateFormat
(
"yyyy-MM-dd'T'HH:mm:ssZ"
,
Locale
.
getDefault
());
private
static
final
int
SOCKET_TIMEOUT
=
60
*
1000
;
private
static
final
int
CONNECTION_TIMEOUT
=
30
*
1000
;
Context
mContext
;
private
Context
mContext
;
private
Realm
mRealm
;
public
NightscoutUploadIntentService
()
{
...
...
@@ -62,6 +62,7 @@ public class NightscoutUploadIntentService extends IntentService {
Log
.
i
(
TAG
,
"onCreate called"
);
mContext
=
this
.
getBaseContext
();
}
@Override
...
...
@@ -92,6 +93,7 @@ public class NightscoutUploadIntentService extends IntentService {
}
else
{
Log
.
i
(
TAG
,
"No records has to be uploaded"
);
}
mRealm
.
close
();
NightscoutUploadReceiver
.
completeWakefulIntent
(
intent
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment