@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); }
@Override public void onLoaderReset(Loader<Cursor> loader) { listAdapter.swapCursor(null); }