Adding a new contact with a photo

Put your problem here if it does not fit any of the other categories.

Adding a new contact with a photo

Postby parimalraj2000 » Tue Jan 13, 2009 5:40 am

Hello All,
From my application I want to create a new conatct with a photo.
I want to send the bitmap data with the intent while creating the new contact.

Can any one please tell me how can I send bitmap data so that the contact picture will be created with my bitmap data?

So far my code looks like:
Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
intent.setType(People.CONTENT_ITEM_TYPE);

intent.putExtra(Insert.PHONE, "0983685258");
intent.putExtra(Insert.NAME, "Pari_Client");

startActivity(intent);
Please help me.
:o
Regards,
Parimal.

[mod]I get why you thought this was supposed to be here, but it belongs in Other coding problems. Moved
parimalraj2000
Junior Developer
Junior Developer
 
Posts: 18
Joined: Tue Nov 04, 2008 10:01 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 15 guests