Reputation: 566
I am making an android music app. I have a few queries about how to make it more efficient-
Any other tips will be highly appreciated.
Upvotes: 1
Views: 206
Reputation: 1751
There is no need to save the music in your own app's database, android saves them for you and provides a content provider (MediaStore) that allows you restricted access to the content of that database. So every time your app wants to load music from the device, it would use the load music from the Media Store, making your own database would only mean having a copy of the data in the device and that would be waste of memory since you would still have to query your database to get the music. you can learn more about content providers and media store from the following tutorials. Media Store
Upvotes: 2