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

Let app survive screensaver #11

Open
LorenzMeier opened this issue Aug 20, 2014 · 1 comment
Open

Let app survive screensaver #11

LorenzMeier opened this issue Aug 20, 2014 · 1 comment

Comments

@LorenzMeier
Copy link

Currently the app stops if the screensaver enables. This may have adverse consequences during flight, as suddenly position information is lost. Could we please allow the app to continue to run even if the screen is locked?

@bblodget
Copy link
Contributor

I committed a change that will keep the screen on while the app runs. Let me know if that works.

It would also be possible to keep the cpu on and let the screen sleep using a WAKE_LOCK. After some searches it appears that keeping the screen on is the more preferred solution because it is automatically managed. If the WAKE_LOCK is not released properly it can cause problems.

https://developer.android.com/training/scheduling/wakelock.html

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

No branches or pull requests

2 participants