开发者

Is there a way to let the screen always on?

My customer want a screen-saver for android, I use the

  1. KeyguardManager

  2. Intent.ACTION_SCREEN_OFF

  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜