title: Android media player returns IllegalStateException
body: <p>I have following code to play small audio files</p>
  
  <pre><code>private void playVoice() {
  
       if (mPlayVoice != null) {
           if (mPlayVoice.isPlaying()) {
               mPlayVoice.release();
               mPlayVoice = null;
           }
       }
       mPlayVoice = 
           MediaPlayer.create(BirdsActivity.this, mSoundIds[getCurrentIndex()]);
       mPlayVoice.start();
   }
  </code></pre>
  
  <p>It works fine in Samsung galaxy tab but gives  below error in small device(I Checked in Sony xperia mini pro my project)</p>
  
  <pre><code>08-17 12:45:45.232: ERROR/AndroidRuntime(6639): java.lang.IllegalStateException
      08-17 12:45:45.232: ERROR/AndroidRuntime(6639):     at   android.media.MediaPlayer.isPlaying(Native Method)
      08-17 12:45:45.232: ERROR/AndroidRuntime(6639):     at           com.android.mds.kidsapps.alphakids.BirdsActivity.playVoice(BirdsActivity.java:146)
  </code></pre>