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:

  1. with adb on either rooted device or emulator, adb pull /data/data/myapplication/databases/mydb.db.
  2. with adb on non-rooted/non-emulator, can try adb shell "run-as [package.name.myapplication] cp /data/data/myapplication/databases/mydb.db /sdcard/mydb.db", , adb pull /sdcard/mydb.db.
  3. if integrate stetho in app, can inspect sqlite databases chrome.

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -