Recording under the lock screen Windows Phone SDK


show more Recording under the lock screen provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Windows Phone SDK Essential Training show less
please wait ...

Recording under the lock screen

The last thing we want to do to Take A Note is make it possible to record under the lock screen. Most applications don't want to run when the user screen locks, meaning when the screen goes black, because the purpose of that is to save the battery and therefore stop the apps and reduce the load on the CPU. But in the case of recording, we want to still be recording even though the lock screen comes on, because Windows Phone devices don't have that option of turning the lock screen off altogether. We have to do one simple thing. So let's open up our MainPage.xaml here, and we'll go take a look at what it is.

So down here we simply have to say PhoneApplicationService. Current.ApplicationIdleDetectionMode=IdleDetectionMode.Disabled. You may remember that we looked at this in the App.xaml.cs, and it gets invoked when you're running in a debugger. So if you want to make sure that the record under the lock screen works for your app, you'll need to deploy the app to an actual phon...

Recording under the lock screen
Video duration: 1m 35s 4h 34m Beginner

Viewers:

Recording under the lock screen provides you with in-depth training on Developer. Taught by Michael Lehman as part of the Windows Phone SDK Essential Training

Subject:
Developer
Software:
Windows Phone
Author:
please wait ...