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



Comment Added by : Amit Kumar Singh

Comment Added at : 2011-10-10 04:44:58

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi fiends,
your given approch is correct . but did not find how to invock the sendSMS menthod.


SMSClient sc = new SMSClient(1);
sc.sendMessage("+91 + mycell number ","Hello");
}
but this cord is not working .
showing the some error like

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.tester.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.tester.sms.Sender.send(Sender.java:47)
at com.tester.sms.SMSClient.run(SMSClient.java:70)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.tester.sms.SerialConnection.openConnection(SerialConnection.java:89)
at com.tester.sms.Sender.send(Sender.java:47)
at com.tester.sms.SMSClient.run(SMSClient.java:70)
at java.lang.Thread.run(Unknown Source)

plz help me to solve this problem .
and give me the client code from where we invock the sendSms method.

plz give me reply on [email protected]


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. i searched a lot of sites but found the answer her
View Tutorial          By: ALIEN ATTACK at 2012-01-09 09:39:36

2. @Adam:
CompareTo returns the difference of

View Tutorial          By: Azher at 2010-01-29 12:23:39

3. Thanks heaps, I had the file already there but it
View Tutorial          By: Jb at 2009-05-14 08:13:08

4. Hello
I installed Android in eclipse...only

View Tutorial          By: amit kumar at 2012-01-19 11:04:55

5. i want to know all things about java in a simple w
View Tutorial          By: jayanthi at 2011-12-01 08:08:56

6. It is simple and clear.. Thnx.
View Tutorial          By: kiru at 2010-04-06 01:48:04

7. from docs api api/java/awt/Frame/setOpacity:

View Tutorial          By: robert at 2014-12-12 07:48:59

8. Very good description. I was quite confused before
View Tutorial          By: Donna at 2011-07-31 03:46:05

9. Useful info
View Tutorial          By: valli at 2014-10-27 10:56:58

10. I have a squid proxy installed as forward proxy an
View Tutorial          By: ruffy at 2012-12-20 12:34:15