android - Setting FLAG_KEEP_SCREEN_ON of an activity from another activity -


i have activity calls activity(not intent,through sdk not open source). second activity mediaplayer , since don't have access code of activity , in jar file, want set flag_keep_screen_on activity other activity. intention here prevent screen turning off during play of video in mediaplayer.
i'll appreciate if can me this.
thanks

you can't, can similar. when launch activity, use startactivityforresult. @ same time, take wakelock keeps screen on. when onactivityresult called, release wakelock.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -