title: Making getContentResolver() to work in class extending Fragment class
body: <p><br><br></p>
  
  <p>What I have in mind is to use two fragments, first one to show the contacts list and second one to show the details of contact which is being selected in the upper fragment.<br>
  The class that I'm using to extend the <strong>Fragment</strong> class does not allow me to use <code>getContentResolver()</code> method due to the context issue. Now I'm trying to fetch the contact in the same class which is extending Fragment class and use it to show in the list view and its details. After going through some older solution I found the way to create a function and pass Context to it as a parameter but the problem is I don't have to call it from any other class which is extending Activity. I want to do it from that same class extending Fragment.</p>
  
  <p>How should I do this? </p>
  
  <p>Any help will be highly appreciated.</p>