Practical development tips for Windows Phone (5): Disable Automatic screen lock when your mobile phone is running the application.

Source: Internet
Author: User

We can set the automatic lock time for the mobile phone in settings -- "lock & wallpaper (there is a small bug in the real machine: R in wallpaper is actually truncated), and our applicationProgramIf you do not want the mobile phone to automatically lock the screen, you can set the corresponding properties so that our devices will automatically ignore the user's idle status (that is, the user has no input on the device) and setCodeRoughly as follows:

 

A friend with a real machine can try and download the source code.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.