public Collection<String> getCircles() {
		String table = RelationshipEntry.TABLE_CIRCLES;
		String selection = null;
		String[] selectionArgs = null;
		String[] columns = { RelationshipEntry.COLUMN_CIRCLE };
		String groupBy = null;
		String having = null;
		String orderBy = null;
		SQLiteDatabase db = getReadableDatabase();
		Cursor c = db.query(table, columns, selection, selectionArgs, groupBy, having, orderBy);
		Set<String> circles = new TreeSet<String>(DefaultCircles.COMPARATOR);

		int circleIndex = c.getColumnIndex(RelationshipEntry.COLUMN_CIRCLE);
		while (c.moveToNext()) {
			String circle = c.getString(circleIndex);
			circles.add(circle);
		}

		// Add default circle, they are NOT stored in the database.
		for (String def_circle : DefaultCircles.getAll()) {
			circles.add(def_circle);
		}

		c.close();
		return circles;
	}
public Collection < String > getCircles ( ) { String table = RelationshipEntry . TABLE_CIRCLES ; String selection = null ; String [ ] selectionArgs = null ; String [ ] columns = { RelationshipEntry . COLUMN_CIRCLE } ; String groupBy = null ; String having = null ; String orderBy = null ; SQLiteDatabase db = getReadableDatabase ( ) ; Cursor c = db . query ( table , columns , selection , selectionArgs , groupBy , having , orderBy ) ; Set < String > circles = new TreeSet < String > ( DefaultCircles . COMPARATOR ) ; int circleIndex = c . getColumnIndex ( RelationshipEntry . COLUMN_CIRCLE ) ; while ( c . moveToNext ( ) ) { String circle = c . getString ( circleIndex ) ; circles . add ( circle ) ; } for ( String def_circle : DefaultCircles . getAll ( ) ) { circles . add ( def_circle ) ; } c . close ( ) ; return circles ; }
@return