Code example for MatrixCursor

Methods: newRow

0
        } 
 
        /** Adds a row to the given cursor */ 
        private void addRow(MatrixCursor cursor, int rowType, long id, String name,
                String emailAddress, int messageCount, int listPosition, long accountId) {
            cursor.newRow()
                .add(rowType)
                .add(id)
                .add(name)
                .add(emailAddress)
                .add(messageCount)
                .add(listPosition)
                .add(accountId);
        } 
    } 
 
    /** Cursor with some extra meta data. */ 
    static class CursorWithExtras extends ClosingMatrixCursor { 
 
        /** Number of account elements, including the combined account row. */ 
Connect your IDE to all the code out there  Get Codota for Java