Viewers: in countries Watching now:
Discover how to build professional apps that encompass the 17 major feature areas of Windows Phone, from XAML to multimedia to network access. In this course, author Michael Lehman details the standard hardware device configuration, teaches how to navigate the development environment, and explores the Windows Phone APIs. The course shows how to build sample applications while learning Windows Phone concepts and frameworks, including the Metro design language.
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.
Find answers to the most frequently asked questions about Windows Phone SDK Essential Training .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
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.