I\'ve been reading, browsing, searching a lot on this, I\'ve criss-crossed stackoverflow back and forth many times and I managed to narrow my problem as much as I cou
You (or the framework) create a database using ONE of the following:
SQLiteDatabase.create()SQLiteDatabase.openDatabase()SQLiteDatabase.openOrCreateDatabase()The first option is the only way to create a memory-only database, the other two open or create a database file.
Consequently, if you are using SQLiteOpenHelper() and you pass name as null, the framework calls SQLiteDatabase.create(null), so you will get a database that only lives in memory (it dies when close() is called). There is no need to also call one of the other direct methods. Instead call getReadableDatabase() or getWritableDatabase() from your helper.