Tag: android-context

java – Using context in a fragment

The Question : 690 people think this question is useful How can I get the context in a fragment? I need to use my database whose constructor takes in the context, but getApplicationContext() and FragmentClass.this don’t work so what can I do? Database constructor The Question Comments : The Answer 1 1347 people think this