Hi!

When creating MediaPlayer with the following code:
mp = MediaPlayer.create(context, resID);
mp.setOnCompletionListener(this);

and calling mp.start(), inside onCompletion (after playback is done) i
try to reinit mp in this way:
mp.reset();
mp.prepare();

But always got an exception at line mp.prepare():
prepareAsync called in state 1

what could be the problem?

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

Reply via email to