- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何在 UserIdleDetectionMode 和 ApplicationIdleDetectionMode 之间进行选择?
When user idle detection is enabled, the operating system will go into a low power usage state when the user is idle. Disabling this property requests that the operating system not perform this service. Use this property to disable user idle detection if your application needs to continue running even when the user is not physically interacting with the screen or hardware buttons. Example scenarios include turn-by-turn navigation applications and games that use the accelerometer for input.
This feature should be used with caution. Applications that disable user idle detection will continue to run and consume battery power when the user is not using the phone. It is recommended that applications that disable user idle detection implement their own form of idle detection and enable UserIdleDetectionMode when appropriate. For example, an accelerometer-based game could enable user idle detection if the accelerometer shows no activity for a period of time.
In the current release, the operating system considers the user to be idle when they have not touched the screen or the hardware buttons within the device lock timeout window, specified in the device’s Settings page. The conditions for detecting user idle status may change in future releases.
MSDN:ApplicationIdleDetectionMode
When application idle detection is enabled, the operating system will deactivate idle applications. Disabling application idle detection requests that the operating system not perform this service. This feature should be used with caution because applications that run while the phone is locked continue to drain the device’s battery. In this case, the user may not realize that the application is running because the screen is off and the phone looks idle.
In the current release, an application is considered to be idle if the user has allowed the phone to lock. In future releases, the conditions that qualify an application as idle may change. Even if application idle detection is disabled, the operating system may deactivate an application for other reasons, such as a depleted battery.
最佳答案
明白了:
(顺便说一句,ApplicationIdleDetectionMode 一旦禁用就无法重新启用)。
关于windows-phone-7 - UserIdleDetectionMode 与 ApplicationIdleDetectionMode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8302508/
如何在 UserIdleDetectionMode 和 ApplicationIdleDetectionMode 之间进行选择? MSDN:UserIdleDetectionMode When use
我试图在这个 WP7 应用程序中找到解决方案崩溃: 创建新的 WP7 应用程序。 允许应用在锁定屏幕中运行: // in App() PhoneApplicationService.Current.
我是一名优秀的程序员,十分优秀!