1

Set Image as contact Photo in Android

view story
linux-howto

http://stackoverflow.com – I have image URI .Now i want to set as photo in Android How do i start ? here is my function Cursor cursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" = ?",new String[]{id}, null); if(cursor.moveToNext()) { mContactName = cursor.getString(cursor.getColumnIndex((ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME))); mPhotoUri = Uri.withAppendedPath(result, ContactsContract.Contacts.Photo.CONTENT_DIRECTORY); (HowTos)