Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : DILIP

Comment Added at : 2012-01-19 14:38:50

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
I have successfully send sms after some trying....first getting NoSuchPortException and After it getting time out in step 6 and after it successful ... all have changes are
1.add new class file as

//DemoSms.java
public class DemoSms
{
public static void main(String args[])
{
SMSClient sc = new SMSClient(1);
sc.sendMessage("+919413102070","Hello");
}

}
//ends here
2.Control panel>Device Maneger>modem and phone >properties

from here i got port name and baud rate and change respectively in following files
SerialParameter.java line 102 replce
public String getPortName() {
return "COM4";
}

line 126 replace
public int getBaudRate() {
return 921600;
}

3. in sender.java
line 23 was rplaced by
private String csca="+919839099999"; // the message center
line 24 was replaced by
private SerialParameters defaultParameters= new SerialParameters ("COM4",921600,0,0,8,1,0);

if u r getting error of port using by another application than restart your computer and make sure that your modem is not connected to internet
THANKS


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. hi friends,
can i write the same jdbc code

View Tutorial          By: mahesh at 2012-01-05 05:09:38

2. Hibernate with annotations and QBE api reduced our
View Tutorial          By: Andrew at 2011-04-29 10:34:26

3. What is the difference between:
CMUsphinx4-

View Tutorial          By: Netrika at 2011-11-26 19:55:07

4. How to do the following
Create a class With

View Tutorial          By: Anurag at 2014-01-03 10:14:45

5. I'd like to Thanks first bcoz your program is real
View Tutorial          By: Pawan at 2012-04-24 19:46:00

6. Nice ,Easy to understand
View Tutorial          By: Jomon at 2009-06-30 00:56:48

7. Everything is running.... But it doesn't send....
View Tutorial          By: Amirtharaj at 2009-04-14 05:26:26

8. Following line
if (strcmp(dp->

View Tutorial          By: Sebastiaan Jaarsma at 2012-12-24 19:28:43

9. very good example.....................
View Tutorial          By: sreeLakshmi at 2012-06-15 08:21:12

10. one of the best example for trim()....
View Tutorial          By: sharad at 2013-01-29 13:43:58