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. nice code. code is running perfectly. but my probl
View Tutorial          By: Avinash at 2013-01-28 07:30:19

2. The code runs successfully but, in actual the wasn
View Tutorial          By: Faisal at 2012-12-20 19:46:59

3. I want get data from Mysql into Spinner by using P
View Tutorial          By: Pravin at 2013-01-05 13:36:11

4. good
View Tutorial          By: Devil vampire at 2009-03-23 12:20:03

5. thanks brother i hope this is most important for e
View Tutorial          By: manglesh upadhyay at 2012-09-26 04:40:41

6. Hi I need code examples J2ME for chating aplicatio
View Tutorial          By: agus at 2010-04-03 04:16:11

7. Hello Friends, i am getting an error in following
View Tutorial          By: Albin at 2008-07-10 23:49:33

8. Hello,
I would like to know how will take p

View Tutorial          By: Jeff at 2011-02-02 23:05:17

9. its nice.. thank you so much.........
View Tutorial          By: rozen at 2010-04-14 11:21:07

10. pls send more tutorial on my id
View Tutorial          By: vipin at 2012-11-17 07:23:49