title: getContentResolver() is not working
body: <p>I have a class name <code>MyPhoneStateListener</code>. Here, I want to use <code>getContentResolver</code>, but there is some problem in the class. It's not my main activity.</p>
  
  <pre><code>Cursor cur = getContentResolver()
           .query(Calls.CONTENT_URI, projection, null, null, Calls.DATE +" desc");
  </code></pre>