May be you have to release thr player before exiting

On May 12, 2010 3:15 PM, "rebeldev" <fa...@mobilefringe.com> wrote:

Hello All,
I'm hoping someone in this group could help me with a problem I'm
currently encountering.
I've created a soundboard application (Android 1.6).  Sound board
works great, and plays as expected.

That is until you exit the app.  When you leave the app, and then
restart it, none of the Sound Buttons work.
I've noticed in my debug call that the it gives me:

create failed:
05-10 09:55:07.834: DEBUG/MediaPlayer(8167): java.io.IOException:
Prepare failed.: status=0x1

Now, I believe I have to call reset() on the mediaplayers for the
buttons, and I've tried doing it in the onCreate() and having the
button initializing in the onRestart() method.  But I still keep
getting this issue.

Additional details: I'm using the create(context, resource id)
constructor.
What am I doing wrong?

Regards,
Rebel

--
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<android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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