samedi 23 mai 2015

Cannot resolve symbol 'context' in 'USING A PRELOADED SQLITE DATABASE WITH SQLITEOPENHELPER' example

I'm using this class java to read db from assets folder and to copy to database folder.

In page link, it say:

To Use it ...

Just use it normally as you would use an ordinary SQLiteOpenHelper object.

Repository repo = Repository.getInstance( context ); SQLiteDatabase db = repo.getWritableDatabase(); ...

but in simple new projet wizard return error in context paramenter. Anyone can help me, please?

enter image description here

Aucun commentaire:

Enregistrer un commentaire