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
Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: How to specify the AppId when sending mms

Hi Marc,

 

here we go:

 

JVM: bklt[1]: setTimeout 30
Starting net_rim_bb_messaging_app
net_rim_bb_messaging_app already running
Starting net_rim_bb_messaging_app
net_rim_bb_messaging_app already running
MMS: TaskThread starting.
JVM: bklt[1]: setTimeout 30
MMS: Send 0x80 (118 bytes)
MMS: send response type = application/vnd.wap.mms-message
MMS: readAll 82 bytes.
MMS: Send Confirmation msgid=8CD817B4-1DD2-71B2-A61A-837D4E6D0000
MMS: SendTask successful
MMSApp defocusing current tunnel
MMS: TaskThread done.
JVM: bklt @46628: timer
JVM: bklt[1] @46629: idle 8
JVM: bklt @46629: setTimer 7
JVM: bklt @47527: timer
JVM: bklt[1] @47527: idle 15
JVM: bklt @47527: setTimer 15

 

Regards,

Jochen

BlackBerry Development Advisor
Posts: 15,693
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to specify the AppId when sending mms

Thanks, that looks fine as well.  Can you post a code snippet of your send implementation?  I've still been unable to reproduce this here.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: How to specify the AppId when sending mms

[ Edited ]

Hi Marc,

 

below the code you requested.

Thanks for your further support in advance.

 

            String url = "mms://0049172xxxxxx:";
            MessageConnection conn = null;
            MultipartMessage msg = null;
            try {
                conn = (MessageConnection) Connector.open( url );
                msg = (MultipartMessage) conn.newMessage(MessageConnection.MULTIPART_MESSAGE);
                msg.setSubject("MMS Subject");
                byte[] textMsgBytes = "MMS Text which won't be sent!!".getBytes("UTF-8");
                MessagePart textPart = new MessagePart(textMsgBytes,0,textMsgBytes.length,"text/plain","id0",null,null);
                msg.addMessagePart(textPart);
                msg.setStartContentId("id0");

                conn.send( msg );
                conn.close();
                
            }
            catch(Exception ex) {
                ex.printStackTrace();
                System.out.println("Exception : "+ex.toString());
            }               

Regards,

Jochen

Message Edited by jhaehnle on 01-26-2009 02:45 AM
BlackBerry Development Advisor
Posts: 15,693
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to specify the AppId when sending mms

Thank you for the sample code.  I've done some further testing and have been able to reproduce the failure, although the error code I received was different (224).  I have sent this issue to our development team.  I do not have a work around to provide at this time.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: How to specify the AppId when sending mms

Thanks for your support! Could you please so kind, to inform us here, if a

fix has been released in further firmware versions?

 

Thanks in advance,

Jochen

Highlighted
Developer
Posts: 117
Registered: ‎02-12-2009
My Device: Not Specified

Re: How to specify the AppId when sending mms

Hi ,

 

Were you able to send MMS? I am able to send MMS but as discussed in this thead. The text and image part are not attaching. I tested in JDE 4.7. The composed MMS shows a red cross and "Object" string in body. The subject comes fine. But in receiver handset, nothing comes in body. Only subject is displayed. And we don't have option to Invoke MMS, as we can't pass Attachment to native MMS application.

 

Please reply your observations regarding this.

 

Thanks,

Developer
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: How to specify the AppId when sending mms

Hi,

 

what device are you using. Firmware version?

 

Regards,

Jochen

Developer
Posts: 117
Registered: ‎02-12-2009
My Device: Not Specified

Re: How to specify the AppId when sending mms

Hi Jochen,

 

I am using Blackberry Storm 9500 (3G) (Vodafone - India). Version - 4.7.0.78 (Platform- 4.0.0.98)

 

Please let me know if you need more details.

 

Thanks,

Sandeep

New Developer
Posts: 2
Registered: ‎01-22-2010
My Device: 8310
My Carrier: Sprint

Re: How to specify the AppId when sending mms

Hi Mark,

 

I hit the same problem. Do you  have a solution for this? The BB I am testing on is 8130 on Sprint V4.5.0.175

 

Any pointers will be highly appreciated.

 

Thanks