title: How to find a replacement for deprecated method?
body: <p>I am new to Android programming. </p>
  
  <p>I have been following a tutorial on creating a Music Player from <a href="https://code.tutsplus.com/tutorials/create-a-music-player-on-android-song-playback--mobile-22778" rel="noreferrer">this website</a></p>
  
  <p>The tutorial calls for a <code>setAudioStreamType</code> method from <code>MediaPlayer</code> Class which is <strong>deprecated</strong>. Which method replaces this deprecated method in particular? And, is there a source where we can find all deprecated methods and its current alternative?</p>
  
  <p>Here is the code I have where there is a warning about a deprecated method:</p>
  
  <pre><code>public void  initMusicPlayer(){
      //set player properties
      player.setWakeMode(getApplicationContext(),
              PowerManager.PARTIAL_WAKE_LOCK);
      player.setAudioStreamType(AudioManager.STREAM_MUSIC);
      player.setOnPreparedListener(this);
      player.setOnCompletionListener(this);
      player.setOnErrorListener(this);
  }
  </code></pre>