I have made a Windows Phone 8.0 application with Visual Studio 2012 that listens to a clap from the microphone and it pauses the current playing song. It is working very fine. But I want to open the app and click the button to start listening and when I go to another app the functionality does not work. What I need is to make my application run in the background like even in home screen when I sound a clap it should pause the song. How can I achieve this ?
Short answer: Not possible to listen to microphone with a background agent
check this link: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202962(v=vs.105).aspx
Unsupported APIs:
System.Windows.Media A/V Capture
Microsoft.Xna.*