How to Disable from autolocking the screen in Windows Phone App ?

In Windows Phone , you can set the autolocking feature of the screen if the user doesn’t interact with the Windows Phone Device for sometime.

You can Disable this feature only for your App so that that the auto locking of the screen doesn;t happen when your App is running in Windows Phone. A simple example turn by turn navigation app that can guide you for to reach the destination . The user might not want the Windows Phone device to be autolocked inbetween although the user is not physically interacting with the Windows Phone screen.

You can disable the autolocking the screen in Windows Phone App by setting the PhoneApplicationService.Current.UserIdleDetectionMode to Disable .

PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...