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
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
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
MultiLevel Inheritance sample in Java
Archived Comments
1. hi i have doubt in strlen()........pls explain how
View Tutorial By: ranjith at 2010-04-18 21:50:17
2. good info to create package
View Tutorial By: Nirdesh at 2012-10-01 03:45:02
3. Hi,
Even if the while loops (in Producer an
View Tutorial By: Pranay at 2012-09-19 19:08:45
4. i am getting a error when try this sms application
View Tutorial By: Prabhash at 2009-06-03 06:45:26
5. Thank you Sir.
View Tutorial By: Dinesh at 2015-08-25 10:41:30
6. Your explanation is good and okay but, it will be
View Tutorial By: Emmanuel at 2009-05-28 02:45:11
7. it is not working
View Tutorial By: shaishav at 2013-06-20 08:03:06
8. It encourage the learners
Learners
View Tutorial By: sureshkumar p at 2010-12-22 04:13:04
9. Hi,
This is very nice tutorial to
View Tutorial By: Robvandam at 2010-05-03 00:29:38
10. thank you....
I have a problem.
I my
View Tutorial By: AbhiRules at 2010-08-05 20:55:27