title: Using context in a fragment
body: <p>How can I get the context in a fragment?</p>
  <p>I need to use my database whose constructor takes in the context, but <code>getApplicationContext()</code> and <code>FragmentClass.this</code> don't work so what can I do?</p>
  <p>Database constructor</p>
  <pre><code>public Database(Context ctx)
  {
      this.context = ctx;
      DBHelper = new DatabaseHelper(context);
  }
  </code></pre>