Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  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:

Programming Java threads in the real world, Part 5 - JavaWorld - February 1999
Programming Java threads in the real world, Part 5 - JavaWorld - February 1999
 
Messaging helps move Java into the enterprise - JavaWorld January 1999
Messaging helps move Java into the enterprise - JavaWorld January 1999
 
Solve real problems with aglets, a type of mobile agent - JavaWorld May 1997
Solve real problems with aglets, a type of mobile agent - JavaWorld May 1997
 
Agents: Not just for Bond anymore - JavaWorld April 1997
Agents: Not just for Bond anymore - JavaWorld April 1997
 
J2ME: The next major games platform? - JavaWorld March 2001
J2ME: The next major games platform? - JavaWorld March 2001
 
Deliver cellular messages with SMS - JavaWorld March 2001
Deliver cellular messages with SMS - JavaWorld March 2001
 
Pushlets: Send events from servlets to DHTML client browsers
Pushlets: Send events from servlets to DHTML client browsers
 
Cut down on logging errors with Jylog
Cut down on logging errors with Jylog
 
Transaction and redelivery in JMS
Transaction and redelivery in JMS
 
Master J2ME for live data delivery
Master J2ME for live data delivery
 
Best tools for mobile application development
Best tools for mobile application development
 
Update distributed applications
Update distributed applications
 
High-availability mobile applications
High-availability mobile applications
 
Develop state-of-the-art mobile games
Develop state-of-the-art mobile games
 
SMS-Powered Applications
SMS-Powered Applications Every business tries to get as close as it can to its customers. The aim is to keep customers up to date with company news, products or service updates, relevant information about their accounts, or to send them notifications for
 
Commons Launcher
The Launcher Component is designed to be a cross platform Java application launcher.
 
Getting Started With the Mobile 3D Graphics API for J2ME
This tutorial introduces the Mobile 3D Graphics API for J2ME, JSR 184. The article presents an overview, potential application areas, the differences between JSR 184 and two related APIs, the classes in the new optional package, the programming model, the
 
Develop MIDlets using the J2ME MIDP Development for NetBeans IDE 4.0
This release integrates with the J2ME Wireless Toolkit 2.2 to create a powerful environment for developing MIDP 2.0 applications.
 
Write custom appenders for log4j
The Apache Software Foundation's log4j logging library is one of the better logging systems around. It's both easier to use and more flexible than Java's built-in logging system.
 
Easy Emulation With New NetBeans Mobility Pack 4.0
With the click of a button, switch back and forth between different emulation environments while developing one set of code. It's never been this easy to take advantage of Java technology's cross-platform capabilities.
 
Site navigation
 

 

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

Copyright © 2006. All rights reserved.