mercredi 27 avril 2016

Using same sqlite database in multiple Android Apps

I have a set of 4 applications, all of them need a general database. The user can use any app first and that app creates the sqlite database.

I think I can create the database in a specific folder using a full path in the SQLiteOpenHelper, maybe I can create the database in a specific path and make all the apps use this database, but data would lose security.

I checked some answers where it is recommended to use a ContentProvider or sharedUserId, but the examples are for scenarios where an app want to share its data, in this case is a common database for all apps, ¿How can I use a Content Provider in this scenario?.

What would be a good way to achieve that?

Aucun commentaire:

Enregistrer un commentaire