Audio file throws IllegalStateException
<p>I've read any single question here but none of them solved my problem. I'm trying to play a media file but it says:</p>

<blockquote>
  <p>E/MediaPlayer(554): prepareAsync called in state 8 W/System.err(554):
  java.lang.IllegalStateException W/System.err(554): at
  android.media.MediaPlayer.prepare(Native Method)</p>
</blockquote>

<p>I couldn't find out where the problem is.. Works(throws exception) on emulator, force closes on tablet. I've seen a post says I shouldn't use prepare method but if I don't nothing changes.</p>

<p>Here is code &amp; errors:</p>

<pre><code> MediaPlayer player = MediaPlayer.create(MyAct.this, R.raw.zboo);
        player.setLooping(false); 

        try {
            player.prepare();
        } catch (IllegalStateException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        player.start();
</code></pre>

<blockquote>
  <p>E/MediaPlayer(522): prepareAsync called in state 8</p>
  
  <p>W/System.err(554): java.lang.IllegalStateException</p>
  
  <p>W/System.err(554):    at android.media.MediaPlayer.prepare(Native
  Method)</p>
</blockquote>

<p>Thanks in advance.</p>
