Lock windows phone emulator

1.4k views Asked by At

I am making a app for windows phone. I use visual studio 2010 and the windows phone sdk which includes the windows phone emulator. My program crashes when i lock the phone's screen (actual device). So i decided to fix this issue. but now i found out that there is no way to debug this because the emulators screen can't be locked.

Is there any way to lock (screen of) the window phone emulator?

4

There are 4 answers

0
iCollect.it Ltd On BEST ANSWER

There are replacement emulator ROMS that some clever developers have created/hacked, like http://www.howtogeek.com/howto/13488/test-all-features-of-windows-phone-7-on-your-pc/

They enable additional features, including screen lock/unlock, that MS chose to turn off in the basic emulator.

Best try find the latest, and best-rated, version of these replacement ROMS before attempting them.

Also please note as they repeat in that article:

This modified emulator image is not official, and isn’t sanctioned by Microsoft. Use your own judgment when choosing to download and use the emulator

0
Felix On

For windows 8 emulators you can also press the power button with your mouse:

enter image description here

1
Yuntao On

In Visual Studio 2012 for Windows Phone 8, you can simulate lock screen through Visual Studio's Simulation Dashboard under Tools menu.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206951(v=vs.105).aspx#BKMK_lockoptions

0
Mubashar On

Press F12

This is what msdn says about it

To lock the screen in the emulator by using the keyboard With the emulator open, press F12 on your computer keyboard twice. The F12 key emulates the power button on the phone. The first key press turns off the display. The second key press turns the display on again with the lock screen engaged. You can unlock the screen by using the mouse to slide the lock screen upward.

I hope it would work for Windows Phone 7 as well. but not sure