On Sun, Mar 1, 2009 at 7:40 AM, madcoder wrote:
>
> I thought I had solved this problem here
>
> http://groups.google.com/group/android-developers/browse_thread/thread/260f2951d4a23445/d676c2a7d6b66c20?hl=en&lnk=gst&q=onpreparedlistener#d676c2a7d6b66c20
>
> but apparently not.
>
>
> I have succes
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.
On Mar 1, 2009 11:40 PM, "Marco Nelissen" wrote:
On Sun, Mar 1, 2009 at 7:40 A
On Sun, Mar 1, 2009 at 8:45 AM, Paper Coder 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: pr
I didn't realize it wouldn't return the media player until it was ready to
play.
Now the methods in media player make much more sense. I was wondering why
there wasn't a way to create a new media player object with the new keyword,
then set the resource id.
Thanks!
On Mon, Mar 2, 2009 at 12:03
On Sun, Mar 1, 2009 at 4:55 PM, Paper Coder wrote:
> I didn't realize it wouldn't return the media player until it was ready to
> play.
>
> Now the methods in media player make much more sense. I was wondering why
> there wasn't a way to create a new media player object with the new keyword,
> t
It's good to know this, especially if I encounter other classes that seem to
not be able to access resources easily. Although, if I encounter that
situation again, it will set off a warning signal that there is probably an
easier way to do it (as in checking for a null reference in media player to
6 matches
Mail list logo