iPhone OS 4 Multitasking - Playing Audio In background
<p>I am trying to use iPhone OS 4.0's multitasking capability. I tried to play audio in the background with no luck. I added UIBackgroundModes property in info.plist and mentioned requires audio to play in background. Also I added the code for playing the audio. 
`</p>

<pre><code>NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"someday" ofType:@"mp3"]]; 
AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:nil];
[audioPlayer play];
</code></pre>

<p>`. The audio starts playing once i click on button in the app. But when I shut the app it stops. How can I make it play in the background?</p>

<p>Thanks,
Tony</p>
