Android: set contact photo with ContactsContract insert intent
问题 I am using ContactsContract to insert a new contact by sending the user to a "New contact" intent. The code I am using is: Intent i = new Intent(Intent.ACTION_INSERT); i.setType(Contacts.CONTENT_TYPE); i.putExtra(Insert.NAME, "Some Contact Name"); i.putExtra(Insert.EMAIL, "address@email.com"); i.putExtra(Insert.PHONE, "123-456-7890"); startActivity(i); However, I need to also somehow pass in a locally stored photo (in res/drawable) to show up on this "New contact" intent. I was hoping that