title: Sharing sqlite database between multiple Android Activities
body: <p>Can two or more Android Activities open an sqlite3 database for write? </p>
  
  <p>I have two Activities that need to insert data into the same sqlite database. When the second Activity calls <code>SQLiteOpenHelper.getWriteableDatabase()</code> an IllegalStateException is thrown with the message "<strong><em>SQLiteDatabase created and never closed</em></strong>". </p>
  
  <p>I've been able to avoid the Exception by making my database object a singleton but I'm thinking there must be a better way. </p>
  
  <p>Thanks,</p>
  
  <p>John</p>