title: Android - Playing mp3 from byte[]
body: <p>I have my mp3 file in byte[] (downloaded from an service) and I would like to play it on my device similar to how you can play files:</p>
  
  <pre><code>MediaPlayer mp = new MediaPlayer();
  mp.setDataSource(PATH_TO_FILE);
  mp.prepare();
  mp.start();
  </code></pre>
  
  <p>But I can't seem to find a way to do it. I wouldn't mind saving file to phone and then playing it. How can I play the file, or download then play it?</p>