The start() only blocks for a fraction of a second. We use this code
all the time all over the code and it would break a lot of things if
it did block until playback completes.

I'm pretty confident that you have a bug in your code somewhere.

On Feb 13, 1:16 pm, frizzo <[email protected]> wrote:
> I should clarify.  In the emulator, it does not block, but in the
> actual phone it seems to.
>
> On Feb 13, 1:11 pm, frizzo <[email protected]> wrote:
>
> > I figured out how to play sounds.
>
> > MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound);
> > mMediaPlayer.start();
>
> > However, the .start() call blocks the application until it is done
> > playing.  Is there a way around this?
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to