title: Android: How to record mp3 radio (audio) stream
body: <p>My favorite Radio station plays a radio audio stream in mp3 format. In my android application I can receive and play it without any problem.</p>
  
  <p>How can I implement a recording function? I want to record the mp3 radio stream to my Android phones SD-Card.</p>
  
  <p>I tried the MediaRecorder Class without any result...</p>
  
  <p><a href="http://developer.android.com/reference/android/media/MediaRecorder.html" rel="noreferrer">Android Developer: MediaRecorder</a></p>
  
  <p>...</p>
  
  <pre><code>mRecorder = new MediaRecorder();
  mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
  mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
  </code></pre>
  
  <p>...</p>
  
  <p>Unfortunately I cannot choose something like:</p>
  
  <p><code>mRecorder.setAudioSource(MediaRecorder.AudioSource.MP3_STREAM);</code>  ... ;-)</p>
  
  <p>How can I record a mp3 radio stream? Thanks for any help or code snippets...</p>