Code example for CursorAdapter

Methods: changeCursor, getCursor

0
        } 
    } 
 
    private void swapCursor() { 
        Cursor cursor = this.sqlHelper.getCursor();
        this.stopManagingCursor(this.adapter.getCursor());
        this.startManagingCursor(cursor);
        this.adapter.changeCursor(cursor);
    } 
    private static final String[] ROW_PROJECTION = {
        BaseballCardContract.BRAND_COL_NAME, BaseballCardContract.YEAR_COL_NAME, 
        BaseballCardContract.NUMBER_COL_NAME, BaseballCardContract.PLAYER_NAME_COL_NAME 
    }; 
    private static final int[] ROW_TEXT_VIEWS = {
        R.id.brand_text_view, R.id.year_text_view, R.id.number_text_view, R.id.player_name_text_view 
    }; 
    private static final String TAG = BaseballCardList.class.getName();
    private static final int DEFAULT_INT_EXTRA = -1;
    TextView emptyList = null;
    private BaseballCardSQLHelper sqlHelper = null;
    private CursorAdapter adapter = null;