How do I create an in-memory sqlite db in Java (Android)? The sqlite docs only show how to do it in C.
I am using the android.database.sqlite package for my db code so I'd prefer to do it with that package, if possible.
Thanks in advance...
you can do it in the same way you'd create any database but instead of passing in a name pass in NULL
for example, in your OpenHelper you'd do something like:
OpenHelper(Context context)
{
super(context, null, null, DATABASE_VERSION);
}
more info on SQLiteOpenHelper here