public static int getInt ( Cursor cursor , String columnName ) { if ( cursor == null ) { return - 1 ; } return cursor . getInt ( cursor . getColumnIndex ( columnName ) ) ; }
Read the int data for the column .