Android stay app active -



Android stay app active -

i remain android application active when working, , using flag_keep_screen_on flag purpose, don't want maintain screen on, because it's not economic battery. want utilize standard behavior - when user touch screen - he's lighting up, , after time of inactive turn off. how can this?

i suggest looking @ powermanager.wakelock, in particular powermanager.partial_wake_lock flag, maintain cpu running yet allow screen turn off. if take approach, create sure release wakelock when done it.

you can find out more here: http://developer.android.com/reference/android/os/powermanager.html

android

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -