How to use Cursor Loader to access retrieved data?
问题 I'm a little confused about how to use the cursor to access the data that I need using the CursorLoader model. I was able to use a SimpleCursorAdapter and pass the cursor to the swapCursor method of the adapter within the onLoadFinished method that you have to implement as follows. @Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { facilityAdapter.swapCursor(cursor); } Now I need to query the database and based on the number of rows returned display an integer. How