Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Windows Phone 7 from locking screen?

The application could not be launched for debugging. Ensure that the 
target device screen is unlocked and that the application is installed.

How to get rid of this annoying message which appears every time I try to debug or run project from Visual Studio on Windows Phone 7 after 5 minutes of not-using phone (5 minutes is maximum time of sreen time-out I can set in phone settings).

I am missing something? Is it possible to avoid phone form locking/time-outing screen either from VS at start of debugging or in special application that I would manually start first before debugging so that app will be back on screen when debugging is finished and stopping phone from locking screen? But how to stop phone from locking screen? :-)

UPDATE: I have Omnia 7 which is AMOLED and doesn't have "never" setting. According to J. Loomis said in comment below, this is because "they can get severe burn in if left sitting on for extended periods" so best would be to unlock screen programmatically on start of debugging. I think this should work this way in VS.

like image 266
Pol Avatar asked Apr 01 '11 20:04

Pol


2 Answers

In "Settings" select "lock & wallpaper" turn the password off and set "Screen time-out" to never.

It is important to note that the "never" option will only show if the password switch is set to off.

like image 71
Matt Lacey Avatar answered Sep 22 '22 13:09

Matt Lacey


you can set UserIdleDetectionMode = Disabled to prevent the lockscreen from coming down on your app while debugging/developing/testing. Use it with caution in your released app. See MSDN for details:

http://msdn.microsoft.com/en-us/library/microsoft.phone.shell.phoneapplicationservice.useridledetectionmode(VS.92).aspx

like image 43
Stefan Wick MSFT Avatar answered Sep 21 '22 13:09

Stefan Wick MSFT