On Sun, Mar 1, 2009 at 8:45 AM, Paper Coder <[email protected]> wrote:
> So if I load a large sound from a resource, is there any way to tell if it's
> ready to play?  I wish there was an isPrepared method for media player.  As
> it stands now there seems like there's no way to know for sure.

Of course there is: prepare() and MediaPlayer.create() are
synchronous, so when those return your MediaPlayer is ready to play.
If you're using prepareAsync(), then you should set an
onPreparedListener before calling prepareAsync, and that listener will
be called when the MediaPlayer is ready for playback.

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