code: public static boolean getBoolean(Cursor cursor, String columnName) {
          return cursor != null && cursor.getInt(cursor.getColumnIndex(columnName)) == TRUE;
      }
docs: Read the boolean data for the column.
  @see android.database.Cursor#getColumnIndex(String).
  @param cursor the cursor.
  @param columnName the column name.
  @return the boolean value.