In my android app: How can I get access to Context in the onCreate method of the SQLiteOpenHelper?
You extend SQLiteOpenHelper
and in your own constructor, save it to a field. Then, later, in onCreate()
you have access to the context.
You can extend that class and pass the context to the constructor, which stores it inside a variable. You then can access it from within the onCreate method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With