[android-developers] Re: Mediaplayer, retrieving after starting a new activity

2009-02-02 Thread Marco Nelissen
The only reason that your playback continues in the background is because you're not stopping it, and the system hasn't garbage collected your MediaPlayer object yet. If you want to do reliable background playback while your UI exits, you will have to do this in a service. On Sun, Feb 1, 2009 at

[android-developers] Re: Mediaplayer, retrieving after starting a new activity

2009-02-02 Thread Dave Sparks
If your application is properly written, you should be calling release () on the MediaPlayer object in your onPause() method. There is no guarantee that your app won't be killed while it's sitting in background, which will stop the audio. If you want audio in the background, you need to write a s