Android: access SQLite database via Content Provider or implement DAO?

android, android-contentprovider, dao, database, sqlite

Solution

I prefer to use ContentProvider if you have concerns of closing or locking of db. Check Simple Content Provider for db operations

Problem

I'm wondering which is the best approach to access my application database: use a Content Provider, or implement my DAO by hand? From my latest investigations, seems that Content Provider, even for app internal use, is preferable, but I don't know exactly what are the drawbacks of each approach. Can you give some feedback about this?

Original source

Related problems