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.
1.) So how to implement this? Which technique will be faster?
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.
2.) Also some song that was stored gets deleted, so how to manager that?
I have already tried searching and came up with this but to no avail:
How to save "now playing" list of Music Player App in Android?