Code example for Cursor

Methods: isAfterLast

0
        // todo - revisit what the ideal ordering would be. 
        return Util.createContentLoader(search, getActivity(), false);
    } 
 
    public void onLoadFinished(Loader<Cursor> cursorLoader, Cursor cursor) {
        if (cursor.isAfterLast()) {
            //setEmptyText(getString(R.string.summary_no_posts)); 
        } 
        adapter.changeCursor(cursor);
    } 
 
    public void onLoaderReset(Loader<Cursor> cursorLoader) {
        if (!getActivity().isFinishing()) {
            setEmptyText(getString(R.string.summary_no_posts));
//            setEmptyText(getString(R.string.summary_loading)); 
        } 
        adapter.changeCursor(null);
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState) {