czadam
czadam

Reputation: 1867

How to store metadata about files on sdcard?

I am planning to create a voice recorder app. I will store my file on the sd card. And I want to store some metadata about them. Name, description, etc. How should I do it? I was thinking to create an SQLite db, and store the metadata there, but what if a file gets deleted, from outside of the applictaion (sd card gets removed), how do I update the DB?

Upvotes: 2

Views: 1031

Answers (1)

jiduvah
jiduvah

Reputation: 5168

I have a similar sineario. What I have done is used a file observer within a service. The service runs the whole time. You can assign a directory to the file observers and you receive onEvent() when something happens

Upvotes: 1

Related Questions