Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Push messages that automatically launch a Java mobile application

Add MIDP 2.0's push registry feature to your device application

Tutorial Details:

Summary
Pushing messages to a mobile device from a server and automatically forcing a pre-installed application to wake up and do some processing is sometimes important for an enterprise mobile application. Java Micro Edition applications that use Mobile Information Device Profile 2.0 can have this feature using the push registry, with Short Message Service (SMS) used as the protocol for pushing messages.

Mobile technology continues to grow in popularity. And Java Micro Edition, or Java ME (Sun's new name for the J2ME platform), is one of the most prevalent technologies for developing mobile applications. Using Java ME, we can run many wireless applications in handheld devices that use either a JVM or KVM.

The application component, which runs in the mobile device, is a MIDlet, a MIDP application. A MIDlet is basically a set of classes designed to be run and controlled by the application management software (AMS) inside a mobile device.

The push registry's behavior can be described in the following three steps:-
The MIDlet registers a port along with the protocol name in the mobile device such that, if any message arrives in the specified port with the protocol mentioned, the AMS delivers it to the MIDlet. The registration is done statically using the Java ME application descriptor (JAD) file. The program can also perform dynamic registration using an API inside the application.

From the server, a message is sent to the specific mobile device using the particular protocol and port where the MIDlet application is registered to listen.

After the message is delivered to the mobile device, the AMS calls the MIDlet application, which has registered to listen to that particular port and particular protocol. Once the message is delivered to the MIDlet, it is the application's responsibility to process the message accordingly. Typically, an application may choose to open a screen, depending on the message, and allow the user to do some server transaction.

Let's now develop a sample application that will enable us, from a Java server-side application, to send an SMS message to a mobile phone's specific port and automatically launch a MIDlet in the mobile device.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Push messages that automatically launch a Java mobile application

View Tutorial:
Push messages that automatically launch a Java mobile application

Related Tutorials:

Displaying 1 - 50 of about 4539 Related Tutorials.

JavaFX Mobile
. JavaFX Mobile JavaFX Mobile is a complete mobile operating and application.... It is a complete, fully integrated Java software system for advanced mobile devices designed... control and flexibility for the mobile ecosystem. Being centralized around Java
 
Tomahawk messages tag
Tomahawk messages tag   Tomahawk messages tag... which is also used to show all messages at one place for the components. Two layouts are supported for generated messages, table and list
 
Top Android Applications
mobile application platform. Although there are a limited number of Android... launched, the T-Mobile Google G1. But the Android application market is soon... etc announcing their plans to launch Android powered mobile phones in 2009. Here
 
JSF messages Tag
JSF messages Tag,JSF messages JSF messages Tag... to show all messages for the components. If you want to customize... layouts are supported for generated messages, table and list. If layout
 
GPS services in mobile phones
the mobile virtual network automatically tracks and alert people about their location... GPS services in mobile phones GPS services in mobile phones          
 
JavaScript array push() method
JavaScript array push() method JavaScript array push() method         ...;     In this example code of JavaScript array push
 
WAP Toolkits Motorola - Mobile ADK 1.1 Nokia - WAP Toolkit
WAP Toolkits Motorola - Mobile ADK 1.1 Nokia - WAP Toolkit... application you have to download software essential... transactions from mobile devices. 
 
Core Java Interview Question Page 1
: How could Java classes direct program messages to the system console... Core Java Interview Question, Interview Question Core Java Interview Question Page 1    
 
Android Application Development
used for great Java application development. If you need a resourceful library... Android Application Development, Android vs iPhone SDK, Android SDK, Android Software Development Android Application
 
Building a Simple EJB Application ?A Tutorial
Building a Simple EJB Application ?A Tutorial Building a Simple EJB Application ?A Tutorial     ... in designing and developing enterprise class web applications using JAVA and J2EE
 
Forwarding Messages using Java Mail
Forwarding Messages using Java Mail Forwarding Messages using Java Mail... then send its for another user. Java code given below gives the functionality
 
Replying to messages using Java mail
Replying to messages using Java mail Replying to messages using Java mail              
 
Open Source Automated Test Tools written in Java

 
Struts 2 Login Application
Struts 2 Login,Struts 2 Login Application,Struts 2 Application Struts 2 Login Application      ...;        Developing Struts 2 Login Application
 
Simple JSF Hello Application
Simple JSF Hello Application Simple JSF Hello Application        ... to follow to create own JSF application. In this example we will explain all you need
 
Installing Sun Java System Application Server Platform Edition
Installing Sun Java System Application Server Platform Edition Installing Sun Java System Application Server Platform Edition...;  In this section we will learn how to install Sun Java System
 
Creating Midlet Application For Login in J2ME
Creating Midlet Application For Login in J2ME Creating Midlet Application For Login in J2ME   ... show to create the Midlet application for user login . All Midlet applications
 
J2ME Books
experienced Java application developers how to write Java applications... experienced Java developers to build high-value mobile applications that take advantage... devices based on the Java 2 Micro Edition (J2ME). You'll learn about the Mobile
 
Eclipse plugin-Network
to configure application's launch Java VM parameters such as security policy... to debugging and monitoring, the RMI Spy will tell you all about application's RMI...; Proxy Plugin-Network The Proxy Plugins lets you launch a proxy from within
 
JavaScript array functions push
JavaScript array functions push JavaScript array functions push         ... that makes you easy to understand array function push. The code show you a HTML
 
A Message-Driven Bean Example
deployment by using Application Server resources. JMS: The Java Message Service... messages and to receive them synchronously, but not asynchronously. To receive messages... are the light weight components used for communication via messages (e.g., email
 
Apache Geronimo Application server Tutorial
, receive and read messages. JavaMail 1.3 Supports Java mail API supporting POP... JavaEE( or J2EE, old name) application server. It is so much capable that it can... JavaEE application server which uses Industry respected and Industry proven
 
UDP Server in Java
UDP Server in Java,User Datagram Protocol Server,Java UDP Network Protocol UDP Server in Java   ... messages or information. The UDP server  UDP denotes a computing
 
Features and Limitations of the Application
Features and Limitations of the Application Features and Limitations of the Application      ... of the application are as follows  : This application is used
 
Applet versus Application
Applet versus Java Application,Difference Between Applet and Application.... Introduction to Java Application : Java applications have the majority of differences... is more than the other method in any java application. If we don't specify
 
Open Source Automated Test Tools written in Java

 
Changing Look and Feel of Swing Application
Swing Application. The look and feel feature of Java Swing provides more... Changing Look and Feel,Change Swing Look and Feel,Java Swing Look and Feel Example Changing Look and Feel of Swing Application
 
Deploying Application
with  Sun Java System Application Server Platform Edition 9. We will also... for deploying Application on the Sun Java System Application Server Platform... with Sun Java System Application Server Platform Edition 9. Find install-dir
 
Application Servers for Java
Application Servers for Java,Application Servers in Java Application Servers for Java    ... have collected the list of all the application servers available for running java
 
Java Programmers with Financial Application
Java Programmers with Financial Application Java Programmers with Financial Application     ...;         Position Vacant: Java
 
Integrating Login And Registration Application In JSF
Integrating Login And Registration Application In JSF Integrating Login And Registration Application In JSF... and registration modules into one application. In this application
 
Database books Page11
; The Open ClientConnect and Open ServerConnect Messages and Codes  This book describes the messages and codes that are returned.... Messages returned by the following programs and products are included: * Open
 
EJB container services
Microsystems, Inc.//DTD Application Server 9.0 Java EE Application 5.0//EN" "http...; The EJB container is a container that deploys EJB automatically when Web Server...(Java Naming and Directory Interface) is the standard interface by which
 
Logging and Determining a Logged Message
program to log the error and messages into the log file. Explanation of java... features in your java application.  It is a part of J2SE (Java 2 Standard ...: warning, info, severe etc. for an application. These information or messages can
 
Introduction to Java
. It is also widely used for mobile and electronic items. What is Java? Java... Java is an Object oriented application programming language developed by Sun... Introduction to Java Introduction to Java
 
Application Servers
; Application Servers for Java Here we have collected the list of all the application servers available for running java based applications. In this application servers for java list we have tried to include all the application servers
 
Struts 2 Session Scope
to create an AJAX application in Struts2 Framework that displays some messages with session. The current application displays a jsp page having the two text fields...;welcome2". This application is created with AJAX in Struts2 Framework. Before
 
New to Java?
in compiling, running, debugging and documenting the application, making the Java..., Java Enterprise Edition helps in web application service, component model...-in networks for running Java based application.  Components of each edition
 
New to Java?
in compiling, running, debugging and documenting the application, making the Java..., Java Enterprise Edition helps in web application service, component model...-in networks for running Java based application.  Components of each edition
 
Building Web Application With Ant and Deploying on Jboss 3.0
_HOME/server/default/deploy directory. Jboss application server automatically... build.xml file automatically compiles source code and assembles J2EE application... Building Web Application With Ant and Deploying on Jboss 3.0
 
Eclipse Plunging- Application Management
Eclipse Plunging- Application Management Eclipse Plunging- Application Management     ... diagnostics of heterogeneous Java/.NET enterprise applications. dynaTrace
 
Developing Struts Application
Developing Struts Application Developing Struts Application     ...; vi) Sometimes, the data submitted has to be validated and error messages
 
Online and Onsite iPhone Training Course from Rose India
iPhone Development Training, iPhone Application Training, iPhone Online... of amazing features that make this smartphone useful to every category of mobile... iPhone Application Development and Training Company with proven expertise
 
JavaScript array push
JavaScript array push JavaScript array push... and controlling their values we have some methods such as push(), pop(), reverse... object push() method. We can add the elements into the array object with the use
 
Execute SQL Queries with Java Application
Execute SQL Queries with Java Application Execute SQL Queries with Java Application     ... program to connect java application and execute queries like create table in mysql
 
Java Captcha in Struts 2 Application
Java Captcha Example, Java Captcha In Struts 2 Java Captcha in Struts 2 Application       ...;       This Java Captcha Example demonstrates you
 
ArrayList
Java: ArrayList Java... the following advantages over an array: An ArrayList automatically expands as data is added... to the appropriate type (until Java 1.5 additions). for (Iterator iter = a.iterator
 
Android Phones for 2009
plans to launch an Android based mobile phone in the third quarter of 2009... behind Motorola has also announced plans to launch an Android based mobile... promise. Accordingly it would launch a mobile with a full QWERTY keyboard along
 
ArrayList
Java: ArrayList Java Notes: ArrayList<E> java.util.ArrayList<E> allows for expandable.... An ArrayList has these characteristics: An ArrayList automatically expands as data
 
Java Message Service(JMS)
Java Message Service(JMS) Java Message Service(JMS...;  JMS (Java Message Service) is a Java API that allows java applications to communicate with other messaging implementations
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.