Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
Posts: 177
Registered: ‎03-02-2010
My Device: Not Specified

programmatically send vCard Via MMS

Hello All,

 

I am following this post to send vCard via MMS , I am able  to to see the message in my device message folder with the red cross icon(X) and it say "Failed to send message"

 

I can open the vCard from message folder and also able to save it to the contact list but its not being sent to the recipient.

 

I am testing application in 9300 BBOS 6.0 and development environment BOS 5.0.

Developer
Posts: 354
Registered: ‎06-05-2013
My Device: Blackberry Z10
My Carrier: Vodafone

Re: programmatically send vCard Via MMS

May i know your VCard format? or did you tried sending mms using simple text or by sending some image?
Trusted Contributor
Posts: 177
Registered: ‎03-02-2010
My Device: Not Specified

Re: programmatically send vCard Via MMS

[ Edited ]

I have attached .vcf file with message part of MMS.

 

1. First i have created a string of Vcard :-

BEGIN:VCARD\r\n" +

VERSION:2.1\r\n" +

N:name\r\n" +

ORGSmiley Surprisedrganization name\r\n" +

 TEL;WORK;xxxxxxxxxxx\r\n"

+ TEL;PREF:xxxxxxxxxx\r\n"

+ ADR;WORK:address\r\n"

+ URL;WORK:http://www.sample.com/\r\n" +

EMAIL;sss@abc.com\r\n" +

END:VCARD

2. i have attached bytes array with the message attachment . :-

 

multipartMessage.addMessagePart(new MessagePart(vCard .getBytes(), "text/x-vcard", "vcard.vcf", null, "UTF-8"));

 

 

I can see the attched vcard in the message folder of device and also able to open and add to contact.

Developer
Posts: 354
Registered: ‎06-05-2013
My Device: Blackberry Z10
My Carrier: Vodafone

Re: programmatically send vCard Via MMS

Are you sending this mms to blackberry device? or please check on other side mms service is also activated...

 

Highlighted
Trusted Contributor
Posts: 177
Registered: ‎03-02-2010
My Device: Not Specified

Re: programmatically send vCard Via MMS

It should be deliver to all the devices (nokia , android ,blackberry , iphone etc)  not only BB.