让 Windows Mobile 6 手机保持活力
我正在为 Windows Mobile 6.1 Pocket PC(触摸屏)制作一个应用程序。我知道当掌上电脑的屏幕关闭时,它会进入待机模式,并且应用程序几乎会在后台停止。我的应用程序无法做到这一点。它需要继续下去。所以我的问题是,如何在我的申请完成之前保持手机处于活动状态(背光打开)?
一个例子是视频流应用程序,例如 Youtube。它可以在视频播放时保持手机开机。
I am making an application for Windows Mobile 6.1 Pocket PC (Touchscreen). I know when a Pocket PC's screen turns off, it goes into a standby mode and applications are pretty much halted in the background. My application can't do that. It needs to keep going. So my question is, how can I keep the phone alive (backlight turned on) until my application is done?
An example of this would be video streaming applications such as Youtube. It keeps the phone on while the video is playing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要您的应用正在执行某些操作(在循环或计时器中),它就相对容易,您需要:
然后定期调用 SystemIdleTimerReset() 。
As long as your app is doing something (in a loop or a Timer) it is relatively easy, you need:
And then call
SystemIdleTimerReset()
regularly.