title: getLoaderManager().initLoader() doesn't accept 'this' as argument though the class (ListFragment) implements LoaderManager.LoaderCallbacks<Cursor>
body: <p>I'm having trouble following a <a href="http://www.vogella.com/articles/AndroidSQLite/article.html">guide</a> on using SQLite in Android. I'm using a <code>ListFragment</code> instead of a <code>ListActivity</code>(as in the example), so I have the <code>ListFragment</code> implement <code>LoaderManager.LoaderCallbacks&lt;Cursor&gt;</code> instead. Then, in the <code>fillData()</code> method in the <code>ListFragment</code>:</p>
  
  <pre><code>private void fillData() {
      // Fields from the database (projection)
      // Must include the _id column for the adapter to work
      String[] from = new String[] { NotesSQLiteHelper.COLUMN_TITLE };
      // Fields on the UI to which we map
      int[] to = new int[] { R.id.label };
  
      getLoaderManager().initLoader(0, null, this); //error
      adapter = new SimpleCursorAdapter(getApplicationContext(), R.layout.notes_row, null, from, to, 0);
      setListAdapter(adapter);
  }
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>The method initLoader(int, Bundle, LoaderManager.LoaderCallbacks&lt;D&gt;) in the type LoaderManager is not applicable for the arguments (int, null, NotesActivity.ArrayListFragment)
  </code></pre>
  
  <p>on the marked line even though <code>this</code> implements <code>LoaderManager.LoaderCallbacks&lt;Cursor&gt;</code>.</p>
  
  <p>Thank you for any ideas.</p>