I use foreign keys in my SQLite DB on Android.
I had a workable database without FK, but now I have several problems.
Firstly, when I try to get a link to db, I have this error.
E/SQLiteLog๏น (10) Failed to do file read, got: 0, amt: 100, last Errno: 2
My function:
public synchronized SQLiteDatabase openDatabase() { if (mOpenCounter.incrementAndGet() == 1) {
Error in line:
mDatabase = mDatabaseHelper.getWritableDatabase();
It seems like the first time this line is called. At other times there is no pb. I'm not sure if this gives me direct errors, but I have a few problems in SQLite, so this can affect bad behavior.
Th
source share