[android-developers] Re: stop/prepare MediaPlayer issues

2010-06-15 Thread Nightwolf
My guess is to use just stop() without checking for isPlaying. And instead of recreating mediaPlayer on each button press call stop() and prepare(). On Jun 15, 7:38 pm, "Jeff B." wrote: > To avoid any confusion, I don't know if I made it clear that the code > I have listed is currently working.  

[android-developers] Re: stop/prepare MediaPlayer issues

2010-06-15 Thread Jeff B.
To avoid any confusion, I don't know if I made it clear that the code I have listed is currently working. I'm just not sure of why I am needing the IllegalStateException logic. Thanks, Jeff On Jun 12, 12:39 am, "Jeff B." wrote: > Hello, > > I have an ImageButton that plays a sound whenever it i