且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式从 Android 中删除 SQLite 数据库

更新时间:2022-12-30 23:31:46

一旦你有你的上下文并知道数据库的名称,使用:

Once you have your Context and know the name of the database, use:

context.deleteDatabase(DATABASE_NAME);

当这一行运行时,数据库应该被删除.

When this line gets run, the database should be deleted.