title: How to make play music button in Android?
body: <p>Just to specify the question a little more, I will give an example.  I have a car stereo and when I get in the car I can just press play and it plays the last song I was listening to on my phone.  So what I need is like a very general Android button that does just that.  I just want this button to start media.  It's difficult to explain but I know like Google Music when you open it always has a song at the bottom that you can press play.  So it's kind of like just continuing a previous queue?  If more details are needed please let me know.  Sorry I do not have any code for this problem because I have never worked with media but if you would like the source to my app that this code will go into please visit
      <a href="http://mellowdev.net" rel="nofollow">http://mellowdev.net</a>
  The app is called Mango.  Open source.</p>
  
  <p>EDIT: I have tried the following but nothing plays.</p>
  
  <pre><code>MediaPlayer mediaPlayer = new MediaPlayer();
  int position = mediaPlayer.getCurrentPosition();
  mediaPlayer.seekTo(position);
  mediaPlayer.start();
  </code></pre>