mardi 29 septembre 2015

Android dev: Sync database

This is my first time writing an Android app that utilizes a database.

I have created a test database in the assets folder. I then have the app copy the database to the database folder: /data/data/myapplication1/databases/myDB.db

I realize now that the assets folders are read only, but how can I sync my database so I can verify, using SQLite browser, the changes I have made?

Should I just move my test DB from assets to a different location? Is there something better?

Or is there a way I can view the DB in the databases folder? (which I believe is protected so it is not visible to other programs)

Aucun commentaire:

Enregistrer un commentaire