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. that was WMC modem i think not Beetel ADSL 2+ mode
View Tutorial          By: chandu at 2008-12-12 22:05:16

2. Hi...Really nice post..But i got the error like
View Tutorial          By: Nithya at 2013-04-11 09:37:50

3. not good example to learn the overriding methods
View Tutorial          By: george at 2010-04-25 12:08:20

4. First things first, you might want to use malloc(i
View Tutorial          By: leon at 2012-05-02 19:00:56

5. thks for help...
View Tutorial          By: Peps at 2010-01-05 02:28:52

6. thanks a lot............
View Tutorial          By: mks at 2013-01-03 06:50:05

7. how to multiply 2.54*0.7071 using only bitwise ope
View Tutorial          By: vindya at 2012-01-12 07:23:08

8. nice one.. i lik dis page... very informative for
View Tutorial          By: lokesh at 2013-01-10 09:06:22

9. tis s very useful and easy to capture all persons
View Tutorial          By: Divya at 2013-12-19 05:42:32

10. how to calculate total value more item
View Tutorial          By: balaji at 2011-01-06 23:52:50