All about Mobile Development
Windows Phone Rockstar in India

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

Free SharePoint Migration Tool
Migrate to SharePoint 2013 & Office 365 for free with Metalogix

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
 
Comments

No comments yet.

Leave a Reply