Professional Documents
Culture Documents
Using Sms
Contents:
Methodology
Why Java?
Reasons for using java
Comparison to other langauges
History of Java
Introduction
Primary goals of using java
Types of Java
Critisism
JSMS:Software
JSMS: Architecture
JSMS Supported Protocols
Message Types
References:
Methodology
Mobile is connected to serial port of computer.
Whenever any message arrives on that mobile ,it is
accepted by java program running on the computer.
Program will read message arrived on pc & extract
the contents.
Depending upon contents of message, program will
connect to particular database for specific data asked
in the Sms.
Contd.
// OddEven.java
import javax.swing.JOptionPane;
public class OddEven {
private int input; public OddEven() {
input =
integer.parseInt(JOptionPane.showInputDialog("
Please Enter A Number")
); }
public void calculate() {
if (input % 2 == 0)
Odd even
System.out.println("Even");
else
System.out.println("Odd"); }
public static void main(String[] args)
{ OddEven number = new OddEven();
number.calculate();
}
}
Types of Java
import java.applet.Applet;
import java.awt.Graphics;
public class Hello extends Applet {
public void paint(Graphics gc)
{ g.drawString("Hello, world!", 65,
95);
}
}
Criticism
Performance
Java's performance has increased substantially since
the early versions, and performance of JIT compilers
relative to native compilers has in some tests been
shown to be quite similar.The performance of the
compilers does not necessarily indicate the
performance of the compiled code; only careful
testing can reveal the true performance issues in any
system
Look and feel
msg.requestStatusReport(true);
// Send the SMS
service.sendMessage(msg);
System.out.println("Message sent successfuly, ID is
"+msg.getMessageId());
service.disconnect(); }
catch( MessageException me ) {
System.out.println("Message could not be sent:
"+me.getMessage());
}
finally { if( service != null ) {
service.destroy(); // Destroy the service } }
}}
Multimedia Message Service
(MMS)
Currently,jSMS provides a implementation for the
following protocol(s):
MM1 (WSP/WTP using WAP-PUSH and a PPP
connection)
MM7 (Multimedia Messaging for Value Added
Service Providers (VASP))
The MMS Service interface defines the methods to
send and receive a Multimedia Message (MMS)
to/from a MMS-Proxy/Relay.
Applications
Possible Applications
Alarming
Remote Control
Monitoring
Notification
Marketing
News services
Keywords
GSM (Global System for Mobile Communications):
The most widely used communication protocol. GSM
is used generally for mobile telephone calls. GSM
enables 9.6 Kbps data transfer rate.
GPRS (General Packet Radio Service): GPRS allows
users to be connected to the network at all times.
GPRS transfer rate is between 30 and 100 Kbps and
only the traffic generated by the user is billed.
References:
http:// www.objectxp.com /
http :// java.sun.com /products/ javacomm /
index.html
http ://www.wikipedia.com
The Complete Reference-Java by Herbert Shildt
Programming with Java: E.Balagurusamy
Teach yourself Java: Joseph O’Neil
Core Java: Gary Cornell