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

Native Development

Reply
Regular Contributor
manoj96067
Posts: 58
Registered: ‎09-21-2010
My Device: Not Specified

Is there any sample code to send MMS?

Hello All,

 

I have gone through the Sending SMS sample Application and its working fine. I have modified the code (only attachement), to send an MMS. I have a picture Lion.jpg in assets folder of the project. Picture size is less than 41KB.

Below is the modified code :

-----------------------------------------

QUrl url("asset:///Lion.jpg");

messageBuilder->addAttachment(bb::smileytongue:im::message::Attachment("image/jpeg", "body.txt", url));

-------------------------------------------

 

Rest of the code is same as in sending SMS.

Code is compiled properly and run properly. But MMS didn't recieved to another phone.

I have checked INBOX on my device, in which my code is running. It shows the message with no pictureand a red clock like icon. Please help me what I am doing wrong. THanks in Advance.                                                                       Manoj Kumar

Please use plain text.
Regular Contributor
manoj96067
Posts: 58
Registered: ‎09-21-2010
My Device: Not Specified

Re: Is there any sample code to send MMS?

Hello All,

 

I have put Lion.jpg image file in assets folder.

The application runs properly. I have put debug statement in between. The conversation Id I get and in the end, after send functional call, I get MessageKey also.

But when I check in my phone's message box, it shows "Message Delivery Failed".

 

Anyone, who has successfully implemented the sending MMS on BB10?

Thanks,

Manoj Kumar

Please use plain text.
Regular Contributor
manoj96067
Posts: 58
Registered: ‎09-21-2010
My Device: Not Specified

Re: Is there any sample code to send MMS?

Hi All,

 

Anybody who has successfully sent MMS programmetically?

 

Thanks and Regards,

Manoj Kumar

Please use plain text.