2

I have generated a vcard of the selected contact. I am sending it through sms (though i know we could send it through mms, but there are some phones that dont support mms).

when I am sending it to another phone, the exact string is received as such,

BEGIN:VCARD
VERSION:2.1
N:Mahajan;Sahil;;;
FN:Sahil Mahajan
TEL;HOME:964-695-7130
EMAIL;HOME:sahilmahajanmj@gmail.com
END:VCARD

But I want that on receiving this message, there should be a default option of saving it as contact.

I am sending it using the following code,

SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(mobileNumber, null, vCardString, null, null);

here vCardString is the actual string containing the vcard. Let me know, if i need to post anything else.

4

0 回答 0