Answer the question
In order to leave comments, you need to log in
How to properly store audio files in android player app?
I decided to write an audio player, but I ran into a problem with storing audio files. It is clear that they are already stored in the phone's memory. The classic functionality is implemented, but what about, for example, with ratings, with favorites, with albums created in the application. All audio files are added to the list each time the application is launched.
For example, the user has marked an audio file as a favorite. How to remember (set a label) so that the next time you start, and the list is filled with audio files, the selected audio file remains selected? Create a database inside the application, or just a list, but what then will act as an id. If anyone knows, please tell me.
Answer the question
In order to leave comments, you need to log in
Create a database where to store the fields: Artist, Song Title, File name / location in the file system, put a constraint on them for uniqueness, the database itself will generate an id. Other options are possible, this is the first that comes to mind.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question