Code example for MergeCursor

0
	} 
 
	private static Cursor cursorWithHeader(Cursor cursor) {
		MatrixCursor header = new MatrixCursor(new String[]{"_id"}, 1);
		header.addRow(new Object[] { new Long(-1)});
		return new MergeCursor(new Cursor[] {header, cursor});
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE