public static String [ ] allStrings ( Cursor cursor , boolean close ) { String [ ] s = EMPTY_STRING_ARRAY ; if ( cursor . moveToFirst ( ) ) { s = new String [ cursor . getCount ( ) ] ; do { s [ cursor . getPosition ( ) ] = cursor . getString ( 0 ) ; } while ( cursor . moveToNext ( ) ) ; } close ( cursor , close ) ; return s ; }
Get all String values in the first column .