Is there a way to let the screen always on?
My customer want a screen-saver for android, I use the
KeyguardManager
Intent.ACTION_SCREEN_OFF
Ref: http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/
When the Intent.ACTION_SCREEN_OFF received, my activity really started. but the screen is off, so I can not see nothing, What I really wa开发者_开发问答nt is the sreen-saver UI will show on screen.
Is there a way to control the screen on/off programmtically?
You should see Coding for (Battery) Life Google IO presentation, slide 16 for keeping screen on
see if this helps http://www.androidsnippets.com/stop-screen-from-dimming-by-enforcing-wake-lock
精彩评论