title: Android music player saving song id and now playing list
body: <p>I am trying to build a music player and while researching the behavior of other apps I have realized that some apps store the now playing list and the song id, so that same state is available when the app is started afresh.</p>
  
  <p>1.) So how to implement this? Which technique will be faster?</p>
  
  <p>Saving song id is simpler by using shared preferences but what about whole list of songs and other data associated with them ( like duration , title...). How to store them.</p>
  
  <p>2.) Also some song that was stored gets deleted, so how to manager that?</p>
  
  <p>I have already tried searching and came up with this but to no avail:</p>
  
  <p><a href="https://stackoverflow.com/q/12216587/5620354">How to save &quot;now playing&quot; list of Music Player App in Android?</a></p>