Code example for Cursor

Methods: getColumnNames

0
            return new View(context);
        } 
 
        @Override 
        protected void bindHeaderView(View view, int partition, Cursor cursor) {
            mRequests.append(partition + (cursor == null ? "" : cursor.getColumnNames()[0])
                    + "[H] "); 
        } 
 
        @Override 
        protected View newView(Context context, int sectionIndex, Cursor cursor, int position,
                ViewGroup parent) {
            return new View(context);
        } 
 
        @Override 
        protected void bindView(View v, int partition, Cursor cursor, int position) {
            if (!cursor.moveToPosition(position)) {
                fail("Invalid position:" + partition + " " + cursor.getColumnNames()[0] + " "
                        + position);
            }