[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
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

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Paper Coder
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

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
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

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Paper Coder
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

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
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

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-02 Thread Paper Coder
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