public static int [ ] allInts ( Cursor cursor , boolean close ) { int [ ] i = EMPTY_INT_ARRAY ; if ( cursor . moveToFirst ( ) ) { i = new int [ cursor . getCount ( ) ] ; do { i [ cursor . getPosition ( ) ] = cursor . getInt ( 0 ) ; } while ( cursor . moveToNext ( ) ) ; } close ( cursor , close ) ; return i ; }
Get all int values in the first column .