[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-14 Thread Martin Obreshkov
Thanks Marco i have a service that was managing the player and when the service was destroyed the player was released(); but after this i was trying to play a song. On Sun, Sep 13, 2009 at 7:56 PM, Marco Nelissen marc...@android.com wrote: Are you sure you're not calling MediaPlayer.release()

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-13 Thread Martin Obreshkov
I have a simple file that wrap the android media player and when i want to play file call the reset method to reset the player something like this . private final MediaPlayer mPlayer; . mPlayer = new MediaPlayer(); somewhere in constructor . public void play(String songUri) {

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-13 Thread Marco Nelissen
Are you sure you're not calling MediaPlayer.release() anywhere in your code? On Sun, Sep 13, 2009 at 5:38 AM, Martin Obreshkov manig...@gmail.com wrote: I have a simple file that wrap the android media player and when i want to play file call the reset method to reset the player something

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-12 Thread Marco Nelissen
What does your code look like? On Sat, Sep 12, 2009 at 6:41 AM, manigault manig...@gmail.com wrote: Hi, I have the following issue i have an application that uses android.media.MediaPlayer and got this exception: 09-12 16:21:05.921: ERROR/AndroidRuntime(9890): Uncaught handler: thread