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



Related Tutorials

Java program to get location meta data from an image

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

Archived Comments

1. You should consider using different threads that a
View Tutorial          By: Jeremy at 2010-01-13 23:02:11

2. This is really helpful, i'm planning to also add a
View Tutorial          By: JhunZhen at 2011-07-09 21:42:32

3. I want a code to receive message from GSM modem us
View Tutorial          By: Mayur at 2011-04-05 00:00:05

4. im trying to just store the data taken from editex
View Tutorial          By: praveen at 2014-08-05 15:19:51

5. very nice program but more info require
View Tutorial          By: pradeep at 2010-07-15 01:11:37

6. vinod kumar for j2me app development we need one I
View Tutorial          By: saurabh dixit at 2013-04-18 09:59:23

7. Good.understand
View Tutorial          By: Selva at 2009-12-29 23:27:29

8. I'm getting the following error even after several
View Tutorial          By: Joe85 at 2011-03-18 08:58:04

9. i need table example!!!...
View Tutorial          By: Sadyog at 2011-01-03 21:59:09

10. Nice Example.Good work.keep it up.
Thanks,<

View Tutorial          By: Lucky at 2011-07-08 10:36:38