MMS Application ID with JAVA

MMS Application ID with JAVA SearchSearch
Author Message
Luis David
New member
Username: Luisda

Post Number: 1
Registered: 07-2011
Posted on Thursday, July 21, 2011 - 01:17 am:   

I am trying to use java for sending mms with application identifier. I had already done it with the url form adding the headers in the additional headers field but don't know how to add this type of parameter with the java code you have for sending mms.

How can I add the Application ID headers when sending a MMS with JAVA? is there another method besides mms.addparameter to do this?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3351
Registered: 08-2008
Posted on Friday, July 22, 2011 - 10:05 pm:   

Hi Luis,

Have you tried the approach described here:

http://www.nowsms.com/send-an-mms-to-a-java-appmidlet

Under #1, we have an extension to the sender (MMSFROM) and recipient (PhoneNumber) parameters, where you append :AppName to the phone number, and these values are set for the appropriate JSR-205 and MMS v1.3 application-id headers.

--
Des
NowSMS Support
Luis David
New member
Username: Luisda

Post Number: 2
Registered: 07-2011
Posted on Friday, July 22, 2011 - 11:07 pm:   

Hi des,
I have tried what you mention but it wont work either in the url or using java code (mms gets into inbox istead of being catched by application) :

try {
sendmms mms = new sendmms("http://127.0.0.1:8800/", "", "");
mms.addparameter("PhoneNumber", "5528547612:com.quimix.bugdefense");
mms.addparameter("MMSSubject", "nowjava17");
mms.addparameter("MMSText", "nowjava17");
mms.addparameter("MMSFile", new File("C:\LOGO.png"));
mms.send();
} catch (IOException e) {
System.out.println("unable to create new url: " + e.getMessage());
}

It will only work if I use the additional headers field in the url form with these parameters:

X-Mms-Applic-ID:com.quimix.bugdefense
X-Mms-Reply-Applic-ID:com.quimix.bugdefense
Content-type: application/vnd.wap.multipart.related;
start=<4620d4c5.smil>;
type=application/smil;
Application-ID=com.quimix.bugdefense; Reply-To-Application-ID=com.quimix.bugdefense
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3355
Registered: 08-2008
Posted on Saturday, July 23, 2011 - 01:29 am:   

Hi Luis,

In the web form, can you try adding :com.quimix.bugdefense to the sender address (example 555555555:com.quimix.bugdefense), in addition to the recipient address.

That should cause the headers to be generated the same as your additional header example.

--
Des
NowSMS Support
yash kumar gupta
New member
Username: Yashk9571

Post Number: 1
Registered: 11-2012
Posted on Thursday, November 08, 2012 - 01:59 pm:   

[unrelated ramblings removed by admin]