android code to delete the database from the application?
A:
Do you need to delete the actual db file or is it enough to just DROP the tables? I'd imagine the end result is the same and dropping the tables could be easier.
onik
2010-08-30 07:07:01
i want to delete the actual db file
Amit Thaper
2010-08-30 07:34:02
+1
A:
File dbFile = getDatabasePath("your_db_file_name");
boolean deleted = dbFile.delete();
radek-k
2010-08-30 08:01:41