title: android Media Player stream more than 1 URL
body: <p>I'm using mediaPlayer in my Android application to stream an MP3 url from online. Instead of just playing the 1 url, how can I stream 5 urls to play one after the other? here's my code </p>
  
  <pre><code>Uri myUri = Uri.parse("https://db.tt/9nBgouRf");
  
  
          final MediaPlayer sdrPlayer = new MediaPlayer();
  
  
  
          try {
              sdrPlayer.setDataSource(this, myUri);
              sdrPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
              sdrPlayer.prepare(); //don't use prepareAsync for mp3 playback
          } catch (IOException e) {
  
              e.printStackTrace();            
              Toast.makeText(channelx.this,
                      "Please turn on WiFi and try again", Toast.LENGTH_LONG).show();
          }
  
  
  
  
          play.setOnClickListener( new OnClickListener() {
  
              @Override
              public void onClick(View v) {
  
                      sdrPlayer.start();
  
  
                  }
                  }
  
          );
  </code></pre>