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.