android - Is WAKELOCK set per application or activity -


when setting wake lock flag using flag_keep_screen_on set wakelock whole application or activity. example have set in main activity, place it's required, , in onpause() of activity removed it. need remove in onpause() of every activity in app or on set.

all find in documentation should ever set in activity not service etc doesn't seem effects.

it appear wakelock set per application. tested setting, opening different activity , leaving time out - didn't.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)