Code example for MergeCursor

0
				, projectionPhone //
				, wherePhone //
				, wherePhoneParameters //
				, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME //
				); 
		return new MergeCursor(new Cursor[] { emailCur, phoneCur });
	} 
 
	public static Contact getContactWithAdress(Cursor cur, ContentResolver contentResolver) {
		Contact contact = new Contact();
		String id = cur.getString(cur.getColumnIndex(ContactsContract.CommonDataKinds.StructuredPostal.CONTACT_ID));
		contact.setId(id);
		contact.setDisplayName(cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME)));
		Adress adress = new Adress();
		adress.setFormattedAddress(cur.getString(cur.getColumnIndex(ContactsContract.CommonDataKinds.StructuredPostal.FORMATTED_ADDRESS)));
		contact.setAdress(adress);
		contact.setPhotoBitmap(getPhotoStream(id, contentResolver));
 
		return contact;
	}