Question

This is how you do it on Windows Phone 7 http://blog.jerrynixon.com/2011/11/mango-sample-lock-and-run.html is it possible in Windows 8?

Était-ce utile?

La solution

This sample is showing you how to implement the functionality so your app will still "run" when the device is locked. It only seems to work with a kind of "background tasks" which makes it not exactly the same as it is for Windows Phone.

http://code.msdn.microsoft.com/windowsapps/Lock-screen-apps-sample-9843dc3a

Please note that an app that can run when the device is locked should have at least one of the following background tasks:

  • Control Channel
  • Timer
  • Push Notification

Here is some more info on the lockscreen: http://msdn.microsoft.com/library/windows/apps/Hh779720

UPDATE:

As far as I have found there is no exact behaviour like in Windows phone to run your app under the lockscreen. There are a few recent posts on the MSDN blogs which explain the background model http://blogs.msdn.com/b/windowsappdev/archive/2012/05/16/being-productive-when-your-app-is-offscreen.aspx?wa=wsignin1.0

Sorry to see that at this moment there is no way to make it work under the lockscreen

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top