Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.
Comment Added by : Ajay
Comment Added at : 2010-09-04 03:01:24
Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
To RUN this code, follow below steps
1 Add main() method in code.
public static void main(String args[]) {
SMSClient a = new SMSClient(1); //
// arg 1 - send number
// arg 2 - Message
a.sendMessage("+91111100", "11111");
}
2 - Download [from net] javax.Comm jar (javax.comm.NoSuchPortException )
comm.jar
win32com.dll
javax.comm.properties
Make sure all 3 file should be in same folder
3 - Configure Message center
Message Center number is available on mobile, check following options
Goto Messaging > Options > Settings > Text message > Service centre
Update the number on class.Sender.csca [variable]
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. thks for help...
View Tutorial By: Peps at 2010-01-05 02:34:15
2. Hi all, i have tried above code, but am getting fo
View Tutorial By: shalini Iyer at 2008-04-22 01:20:32
3. Excellent Article.
View Tutorial By: Praveen Kumar S at 2011-03-24 23:14:44
4. Hi ,
Is there any way to export con
View Tutorial By: Nithya Duraiswamy at 2009-03-03 21:32:05
5. thank you..!!
really very helpful...
View Tutorial By: sneha at 2012-01-30 18:01:16
6. it was very good explanation hope all links give s
View Tutorial By: ravi at 2010-08-26 10:19:48
7. I am getting error in setContentView(R.layout.main
View Tutorial By: user at 2012-01-13 06:49:42
8. i fixed it already...
how can I get
View Tutorial By: kathleen ashley at 2010-08-08 04:51:26
9. This tutorial is very good. Actually I have been s
View Tutorial By: farhaan at 2008-03-20 15:22:13
10. could you guys maybe give an example using a 3 dim
View Tutorial By: Steve at 2011-06-08 12:14:13