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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. its simple and easy... good example.
View Tutorial By: madhu kk at 2012-12-05 07:56:04
2. how to read csv file using Java
View Tutorial By: Shireesha at 2013-12-26 07:34:22
3. a bit extra information on robust
View Tutorial By: mahesh at 2010-02-02 12:05:37
4. Reading the above comments and questions I have my
View Tutorial By: running on toaster at 2013-04-23 02:20:43
5. this code works very well for me , but it runs onl
View Tutorial By: m. usman at 2013-08-31 14:17:22
6. This is an old method although it works. The bette
View Tutorial By: Emiley at 2013-01-11 03:56:02
7. javax.comm.NoSuchPortException
at javax.co
View Tutorial By: nikhil at 2009-07-22 05:58:55
8. hay is there any way to perform operation or calcu
View Tutorial By: neha at 2009-11-20 08:29:45
9. this code should be commented I mean a lot of comm
View Tutorial By: mmmm at 2012-03-31 00:44:41
10. I have one textbox and three label.i want to parse
View Tutorial By: Nara at 2011-08-01 06:16:07