title: Start called in state 4 error in android MediaPlayer?
body: <p>I am starting playback of an online audio stream in a service. This is the method which starts the playback: </p>
  
  <pre><code>    void start1(String a){
          try{
          mp.setDataSource(a);//mp is a global MediaPlayer variable
          mp.setOnPreparedListener(this);
          mp.prepareAsync();
          mp.start();
          }catch(Exception e){
              noerror=false;
                  }
    }
  </code></pre>
  
  <p>The <code>onPrepared()</code> function:</p>
  
  <pre><code>    @Override
    public void onPrepared(MediaPlayer mp1){
          mp.start();
      }
  </code></pre>
  
  <p>This code gives me the error</p>
  
  <pre><code>Start called in state 4: error(-38,0)
  </code></pre>
  
  <p>What is wrong with this code?</p>