title: E/SQLiteLog﹕ (10) Failed to do file read, got: 0, amt: 100, last Errno: 2
body: <p>I'm implementing Foreign Keys in my SQLite DB in Android.</p>
  
  <p>I had my DB working well without FK, but now, I have several problems.</p>
  
  <p>One is when I try to get reference to db, I have this error.</p>
  
  <pre><code>E/SQLiteLog﹕ (10) Failed to do file read, got: 0, amt: 100, last Errno: 2
  </code></pre>
  
  <p>My Function:</p>
  
  <pre><code>public synchronized SQLiteDatabase openDatabase() {
      if (mOpenCounter.incrementAndGet() == 1) {
          // Opening new database
          mDatabase = mDatabaseHelper.getWritableDatabase();
          // Get Foreign Key Support
          mDatabase.execSQL("PRAGMA foreign_keys=ON");
  
      }
      return mDatabase;
  }
  </code></pre>
  
  <p>The error happens in the line:</p>
  
  <pre><code>mDatabase = mDatabaseHelper.getWritableDatabase();
  </code></pre>
  
  <p>It seems to be the first time that this line is called.
  Other time, there is no pb.
  I'm not sure it gives me direct errors, but I have several problems in SQLite, so it might contribute to bad behaviour.</p>
  
  <p>Tx</p>