2 out of 3 rated this helpful - Rate this topic

PhoneApplicationService.ApplicationIdleDetectionMode Property

July 26, 2012

Gets or sets whether application idle detection is enabled.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public IdleDetectionMode ApplicationIdleDetectionMode { get; set; }
<object ApplicationIdleDetectionMode="IdleDetectionMode" .../>
Important noteImportant Note:

This Windows Phone feature has certification requirements that must be met for an application to be eligible for listing in the Windows Phone Marketplace. You should consider these requirements as you design and test your application. For more information, see Windows Phone 7 Application Certification Requirements.

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. For more information about using this feature, see Idle Detection for Windows Phone.

NoteNote:

The XAML usage of this property is not supported.

This method may throw one of the following exceptions.

InvalidOperationException

ApplicationIdleDetectionMode cannot be enabled after it has been disabled. ApplicationIdleDetectionMode cannot be set until the application’s PhoneApplicationFrame object has been initialized.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.