0

I use the code SQLiteDatabase.openDatabase(path, null, SQLiteDatabase.OPEN_READONLY) to open a file. If the file is not a valid database file, the default behavior is the file being deleted. Looks like the system is trying to delete a bad database file. What can I do to stop this?

I want my program to support API 7, so I can't add a DatabaseErrorHandler.

midhunhk
  • 5,560
  • 7
  • 52
  • 83
user1477339
  • 115
  • 1
  • 7

1 Answers1

0

This is a well-known issue. Interested readers may want to read here or here.

Community
  • 1
  • 1
user1477339
  • 115
  • 1
  • 7