On Fri, May 22, 2009 at 9:57 PM, iDeveloper <ideveloper...@gmail.com> wrote:

> Thanks.
> And how do I stop the audio from playing if isMusicActive() returns true?
> Do I have to use the MediaPlayer instance? But the instance won't be in
> memory any longer as the activity has been exited once and a new instance of
> the activity created in order to come back.
>

That is a bug in your application. You can't just let the MediaPlayer go out
of scope and expect it to keep playing. It will stop playing as soon as the
garbage collector runs and gets rid of it.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to