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 -

Slow performance first queries on SQL Azure -

Java Entity Manager - JSON reader was expecting a value but found 'db' -