Java

Selecting MMS Route when sending MMS

When submitting an MMS message, it is frequently desirable to direct the message to a specific connection. The method for doing this varies depending on the protocol being used to submit the MMS message. HTTP URL or POST Submission If you are submitting via HTTP (https://nowsms.com/doc/submitting-mms-messages/now-smsmms-proprietary-url-su bmission), you can specify an MMSCRoute=xxxx parameter,...

Read More

Bug Sending Long Binary SMS Messages to Java Apps on Motorola Devices

One of the more interesting technical support incidents of the past week comes from Mohit Kumar Sethi at 3i Infotech Consumer Services Ltd. Mohit is using NowSMS Lite to send binary SMS messages to a Java application that his company is developing. He noticed that when sending SMS binary messages longer than 140 bytes, the messages were received correctly by Nokia and SonyEricsson devices,...

Read More

Send WAP Push from Java (or JSP)

The previously posted examples for sending SMS and MMS messages from a Java application with NowSMS can also be used for sending WAP Push messages. Normally, when we talk about WAP Push messages, we are talking about “Service Indication” (SI) messages, which are a common type of WAP Push message. MMS Messages also use WAP Push for part of the delivery process, but they are handled...

Read More

Send MMS from Java (or JSP)

A Java example for sending MMS messages via NowSMS has been posted at the following link: https://nowsms.com/download/sendmms.java.txt This class supports all of the MMS related parameters available in NowSMS, most of which are described later in this posting. For a related PHP script, please see: https://nowsms.com/nowsms-php-example-send-mms-message To use this Java class, begin by creating a...

Read More

Send SMS from Java (or JSP)

The following example Java class, sendsms, can be used to send an SMS text message via NowSMS from Java. This script can also be downloaded from https://nowsms.com/download/sendsms.java.txt. To send MMS messages from Java, please see: https://nowsms.com/doc/submitting-mms-messages/send-mms-message-with-java The sendsms class defined in this example can be used to send simple SMS text messages,...

Read More

MMS to a Phone Based Application

Application Directed MMS:  Send an MMS to a Java app/MIDlet In the last post, I talked about sending SMS messages to a Java MIDlet running on a phone by using SMS port addressing. This time I want to explain how to send an MMS message to a Java MIDlet running on a phone, using MMS application ID addressing. SMS port addressing has been part of SMS, as defined by the ETSI GSM 03.40 specifciation,...

Read More

SMS to a Port Number

Application or Port Directed SMS:  How to Send an SMS to a Java app/MIDlet It’s a common task, but a confusing one. As Java becomes more widely supported on mobile phones, one of the most obvious application needs is the ability to send SMS messages to an application and have the application take some action based upon the content of the SMS message. However, while J2ME will let an...

Read More