title: AsyncTaskLoader doesn't run
body: <p>I want to implement an AsyncTaskLoader in my project using the Compatibility Package, so I followed the Loader manual in Android Docs.</p>
  
  <p>The problem is that the Loader does nothing, it seems <code>loadInBackground()</code> is never called</p>
  
  <p>Any idea of what's wrong in my code? 
  (<code>ExpandableListFragment</code> extends <code>Fragment</code>,but doesn't override any critical method )</p>
  
  <p>Thank you :-)</p>
  
  <p>/**EDIT:</p>
  
  <p><strong>I realized (late, I'm a moron) that AsyncTaskLoader is an abstract class so I need to subclass it... m(__)m
  I leave the question in case someone comes here behind me, who knows...</strong></p>
  
  <pre><code>public class AgendaListFragment extends ExpandableListFragment implements
          LoaderManager.LoaderCallbacks&lt;JSONArray&gt; {
  
      private TreeMap&lt;Integer, ArrayList&lt;Evento&gt;&gt; mItems = new TreeMap&lt;Integer, ArrayList&lt;Evento&gt;&gt;();
      private AgendaListAdapter mAdapter;
      private ProgressBar mProgressBar;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
          View root = inflater.inflate(R.layout.fragment_agenda, container);
          mProgressBar = (ProgressBar) root.findViewById(R.id.loading);
          return root;
  
      }
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
  
          mAdapter = new AgendaListAdapter(getActivity());
          setListAdapter(mAdapter);
  
          getLoaderManager().initLoader(0, null, this);
  
      }
  
      @Override
      public Loader&lt;JSONArray&gt; onCreateLoader(int arg0, Bundle arg1) {
          mProgressBar.setVisibility(View.VISIBLE);
          return new AsyncTaskLoader&lt;JSONArray&gt;(getActivity()) {
              @Override
              public JSONArray loadInBackground() {
  
                  return getDataFromService(AgendaServices.LISTADO_MES);
  
              }
  
          };
      }
  
      @Override
      public void onLoadFinished(Loader&lt;JSONArray&gt; loader, JSONArray data) {
  
          // Some stuff to turn JSONArray into TreeMap
  
          mProgressBar.setVisibility(View.GONE);
          mAdapter.setItems(mItems);
  
      }
  
      @Override
      public void onLoaderReset(Loader&lt;JSONArray&gt; arg0) {
          mAdapter.setItems(null);
          mProgressBar.setVisibility(View.VISIBLE);
  
      }
  
  }
  </code></pre>