예제 #1
0
 public static boolean deleteDatabase(Context context, String name) {
   logger.i(context.getDatabasePath(name).getPath());
   return context.getDatabasePath(name).delete();
 }
예제 #2
0
 public static void deleteDatabaseDirectory(Context context) {
   File databaseDirectory = context.getDatabasePath("").getAbsoluteFile();
   deleteContentsOfDirectory(databaseDirectory);
   logger.i("Database Directory: " + databaseDirectory.getAbsolutePath());
 }