title: How to set the context for getContentResolver()?
body: <p>I have created <code>query()</code> method inside 2 different classes <code>A</code> and <code>B</code> in 2 different files where <code>A</code> and <code>B</code> are querying from different tables:</p>
  
  <pre><code>public Cursor query(Uri uri, String[] projection, String selection,
              String[] selectionArgs, String sortOrder) { 
  }
  </code></pre>
  
  <p>Then from 2 different <code>Activity</code> I tried to call using following code:</p>
  
  <pre><code>Cursor cursor = getContentResolver().query(uri, projection, null, null, null);
  </code></pre>
  
  <p>But from both <code>Activity</code> it's calling only <code>query()</code> method from <code>Class A</code>. Do I missing to set something before call the <code>getContentResolver()</code>?</p>
  
  <p>My manifest:</p>
  
  <pre><code>&lt;manifest&gt;
      &lt;application&gt;
  ......................
          &lt;provider
              android:name=".provider.ItemProvider"
              android:authorities="com.waveletandroid.provider" &gt;
          &lt;/provider&gt;
         &lt;provider
              android:name=".provider.CustomerProvider"
              android:authorities="com.waveletandroid.provider" &gt;
          &lt;/provider&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>My <code>URI</code> in <code>ItemListActivity</code>:</p>
  
  <pre><code>itemUri = Uri.parse("content://com.waveletandroid.provider/waveletandroid";
  </code></pre>
  
  <p>My <code>URI</code> in <code>CustomerListActivity</code>:</p>
  
  <pre><code>customerUri = Uri.parse("content://com.waveletandroid.provider/waveletandroid";
  </code></pre>