How to delete SQLite database from Android programmatically

前端 未结 12 1663
猫巷女王i
猫巷女王i 2020-11-27 10:41

I would like to delete the database file from the Android file system programatically? Can I have a shell script launch adb which in turns runs a

12条回答
  •  广开言路
    2020-11-27 11:18

    Delete old Db when uninstall the app.

    Setting android:allowBackup="false" in the application tag in AndroidManifest.xml fixed the problem. It seems that for some weird reason the Android OS was restoring from a backup every time I deployed the app.

提交回复
热议问题