title: java.lang.illegalstateexception database not open android
body: <p>When I am trying to insert to data base log cat shows an error like <code>java.lang.illegalstateexception database not open android.</code></p>
  
  <p>But I have opened the db using</p>
  
  <pre><code>   db = SQLiteDatabase.openDatabase(DATABASE_PATH, null,
                  SQLiteDatabase.OPEN_READWRITE);
  </code></pre>
  
  <p>The error is not occurring frequently.Anybody know the reason for this?</p>