i'm developing an android application which allows different users to login and see a list of favourite songs.
Each user has its list of songs, and a song is an instance of the corresponding class Song
, with some attributes (singer
, year
, title
...). The MainActivity
contains the form for the login, so the user has to set its Name
and Password
. After login, a second activity is started, and it contains the ListView
with the user's favourite songs.
How can i associate a single user to its corresponding song's list? I thinked to use a database to store the songs, but then?