title: getting context of fragment in baseadapter
body: <p>this has became some thing complicated for me since im not so much familiar with fragments but it might also be simple for some of you guys, here i had this part of code referring to an activity, when i changed the activity to fragment it says <code>can not cast from context to ListViewActivity</code>, can you please help me solve this:</p>
  
  <pre><code> @Override
  public Filter getFilter() {
      return ((ListViewActivity)mContext).new ListFilter();
  }
  </code></pre>
  
  <p>obviously <code>mContext</code> is a context reference.i understand that inside the fragment should get context with <code>getActivity()</code>, but from outside ?thanks a lot.</p>