title: commit fragment from onLoadFinished within activity
body: <p>I have an activity which loads a data list from the server using loader callbacks. I have to list out the data into a fragment which extends </p>
  
  <pre><code>SherlockListFragment 
  </code></pre>
  
  <p>i tried to commit the fragment using</p>
  
  <pre><code>Fragment newFragment   = CategoryFragment.newInstance(mStackLevel,categoryList);
  FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
  ft.add(R.id.simple_fragment, newFragment).commit();
  </code></pre>
  
  <p>in onLoadFinished and it gives an IllegalStateException saying </p>
  
  <pre><code>java.lang.IllegalStateException: Can not perform this action inside of onLoadFinished
  </code></pre>
  
  <p>I have referred the example in actionbar sherlock, but those examples have loaders within the fragments and not the activity.</p>
  
  <p>Can anybody help me with this o that I can fix it without calling the loader from the fragment!</p>