Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve problem in Android 4.4.x #2

Open
Ana06 opened this issue May 25, 2016 · 0 comments
Open

Solve problem in Android 4.4.x #2

Ana06 opened this issue May 25, 2016 · 0 comments
Labels

Comments

@Ana06
Copy link
Owner

Ana06 commented May 25, 2016

There is a bug in Android 4.4.x and Services and BroadcastReceivers are stopped when the app is closed (closed not pause):
http://www.androidpolice.com/2014/03/07/bug-watch-stopping-apps-on-android-4-4-2-can-silently-kill-related-background-services-a-fix-is-on-the-way

In the previous link the problem is explained with detail and also a solution is proposed:

While BroadcastReceivers and other similar mechanisms seem to be crippled, the AlarmManger can be used to refresh dead services. An alarm can be used to resurrect dead services

So, after creating the Service for sending the tests to the database, an alarm should be programmed to solve this issue.

It is not a critical problem, as in normal cases tests are sent, but there will be rare occasions where data will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant