How to delete SQLite database from Android programmatically

前端 未结 12 1638
猫巷女王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:33

    context.deleteDatabase("database_name.db");
    

    This might help someone. You have to mention the extension otherwise, it will not work.

提交回复
热议问题