How can I get the context in a fragment?
I need to use my database whose constructor takes in the context, but getApplicationContext() and Fragmen
getApplicationContext()
Fragmen
You have different options:
getActivity()
Context
getContext()
If you don't need to support old versions then go with getContext().