Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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 phone device and then disconnect it from your development system in order to be able to test that. And one more reminder, if you disconnect the phone while Zune is running--because you want to show somebody your great app, or in this case you want to test this feature--oftentimes you'll have to quit and restart the Zune app even after you've plugged your phone back in, in order to be able to continue to do development with Visual Studio.
So there it is. I hope that you make great recordings, and I hope that Take A Note has helped you understand the intricacies of recording and playing back sound with Windows Phone and that you have fun making recordings and playing them back.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 92826 Viewers
82 Video lessons · 104226 Viewers
71 Video lessons · 75922 Viewers
56 Video lessons · 107279 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.