Android dev: Sync database -
this first time writing android app utilizes database.
i have created test database in assets folder. have app copy database database folder: /data/data/myapplication1/databases/mydb.db
i realize assets folders read only, how can sync database can verify, using sqlite browser, changes have made?
should move test db assets different location? there better?
or there way can view db in databases folder? (which believe protected not visible other programs)
to view database databases folder:
- with
adb
on either rooted device or emulator,adb pull /data/data/myapplication/databases/mydb.db
. - with
adb
on non-rooted/non-emulator, can tryadb shell "run-as [package.name.myapplication] cp /data/data/myapplication/databases/mydb.db /sdcard/mydb.db"
, ,adb pull /sdcard/mydb.db
. - if integrate stetho in app, can inspect sqlite databases chrome.
Comments
Post a Comment