开发者

Flashing Screen in Android

I made a android project, now my project has a need to set up a alarm type, like blinking screen for which user can see that screen is blinking,

Flashing screen mean开发者_开发知识库s, screen back light is turn off/on regularly.

Like we make a thread and after every 500 milliseconds we toggle the screen light.

How i do this...


  • To modify screen brightness, take a look at this question

  • For repeating schedulded events you can make use of the standard java Timer/TimerTask or simply play with android Handler.postDelayed(Runnable,delay)

For a short introduction to the later, see this question.

Happy coding!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜