Code example for CursorAdapter

Methods: swapCursor

0
        } 
 
        @Override 
        public Cursor swapCursor(Cursor newCursor) {
            mHeaders = null;
            return super.swapCursor(newCursor);
        } 
 
        private final class DataSetObserverExtension extends DataSetObserver {
            @Override 
            public void onChanged() { 
                mHeaders = generateHeaderList();
            } 
 
            @Override 
            public void onInvalidated() { 
                mHeaders = generateHeaderList();
            } 
        } 
 
        private class HeaderData {