开发者

Is there a way to let the screen always on?

开发者 https://www.devze.com 2023-03-01 10:08 出处:网络
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/

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

精彩评论

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