title: How to access contentResolver of a fragment in a different activity?
body: <p>The situation is that I have a <code>MainFragment</code> (extends a <code>ListFragment</code>, implements <code>LoaderManager.LoaderCallbacks&lt;Cursor&gt;</code>) which is called from <code>MainActivity</code>. A new activity <code>DetailsActivity</code> is called from that fragment to display the content of a certain item in a list view getting the id as an intent argument. How can I <code>getContentResolver()</code> to access its methods using a Uri?</p>
  
  <p>The error right now I get from accessing content resolver is:</p>
  
  <pre><code>`java.lang.IllegalArgumentException: Unknown URL content://com.xxxx.words.contentprovider/words`
  
  uri = Uri.parse(MainContentProvider.CONTENT_URI.toString());
              getContentResolver().insert(uri, contentValues);
  
  CONTENT_URI = Uri.parse("content://" + "com.xxxx.words.contentprovider" + "/" + "words");
  </code></pre>
  
  <p>android manifest file:</p>
  
  <pre><code>&lt;provider
          android:authorities="com.xxxx.words.contentprovider.MainContentProvider"
          android:name=".contentprovider.MainContentProvider"/&gt;
  </code></pre>
  
  <p>or should i just return a <code>Bundle</code> from that <code>DetailsActivity</code> and access the content provider in the initial fragment?</p>