Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Create an auto-start MIDlet

by Retired ‎02-16-2010 02:51 PM - edited ‎09-16-2010 03:00 PM (1,716 Views)

Summary

 

This article applies to the following:

  • BlackBerry® smartphones based on Java® technology

Details

 

The following procedure creates a MIDlet that automatically runs when the BlackBerry smartphone starts.

 

  1. Make sure the Java Application Descriptor (JAD) file for your application has been added to your project.
  2. Verify that the following property exists in your JAD file:

    RIM-MIDlet-Flags-1: 0

    Set this property to a value of 1.

  3. Build the project.

Setting RIM-MIDlet-Flags-1 to a value of 1 will trigger your application to start automatically when the BlackBerry smartphone starts; then the application will perform its required actions. Alternatively, an application can be set to auto-register with the PushRegistry on startup. This allows an application to accept incoming network connections, such as Hypertext Transfer Protocol (HTTP) and Short Message Service (SMS). When using the PushRegistry, the application is invoked whenever data arrives on the registered connection. For more information, see this article.

 

Contributors
Users Online
Currently online: 29 members 2,837 guests
Please welcome our newest community members: