Closed GoogleCodeExporter closed 8 years ago
Hmm, I'm wondering can this be accomplished by enabling screen lock when the
timer for autolock of OI Safe starts? And when the timer is stopped, when the
user opens OI Safe, the screen lock can be disabled again. I mean, the
enable/disable screen lock stuff to be inside the timer methods?
Original comment by dkremov
on 22 Dec 2011 at 12:35
Should be much easier than that... it should be handled in the onPause /
onResume methods of the main shopping activity.
Original comment by AaronPer...@gmail.com
on 22 Dec 2011 at 1:33
Oh, yeah, sorry, didn't notice it was for Shopping List, not Safe. But I think
it should be mentioned somewhere that the screen lock is disabled (if chosen in
the menu) only while the app is open, if this gets implemented.
Original comment by dkremov
on 22 Dec 2011 at 8:19
I noticed that SCREEN_BRIGHT_WAKE_LOCK is used for the disabling of screen
lock, but the developer.android.com says:
"This constant is deprecated. Most applications should use FLAG_KEEP_SCREEN_ON
instead of this type of wake lock, as it will be correctly managed by the
platform as the user moves between applications and doesn't require a special
permission. Wake lock that ensures that the screen is on at full brightness;
the keyboard backlight will be allowed to go off. "
FLAG_KEEP_SCREEN_ON could probably be used to ensure that the screen lock is
disabled only while the app is open.
http://developer.android.com/reference/android/view/WindowManager.LayoutParams.h
tml#FLAG_KEEP_SCREEN_ON
Original comment by dkremov
on 23 Dec 2011 at 5:22
http://www.google-melange.com/gci/task/view/google/gci2011/7136285
Original comment by AaronPer...@gmail.com
on 25 Dec 2011 at 1:33
Original comment by peli0...@googlemail.com
on 25 Dec 2011 at 12:43
This issue was closed by revision r3944.
Original comment by rmce...@gmail.com
on 28 Dec 2011 at 11:55
Original issue reported on code.google.com by
peli0...@googlemail.com
on 11 Dec 2011 at 5:57