Esempio n. 1
0
  @Override
  public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
    // getting a null pointer exception here

    Log.d(TAG, "Content loaded: " + cursor.getCount());
    listAdapter.swapCursor(cursor);
  }
Esempio n. 2
0
 @Override
 public void onLoaderReset(Loader<Cursor> loader) {
   listAdapter.swapCursor(null);
 }