08-28-2008 05:31 PM
Poking around for some information but can't seem to find any. Is there any significant difference between BlackBerry's scheduleApplication and the javax registerAlarm? With either of these is there a way to tell that the was launched from the platform rather than user-initiated?
Solved! Go to Solution.
08-29-2008 09:01 AM
PushRegistry is designed to be used by a MIDlet application.
Applicationmanager.scheduleApplication is designed to be used by BlackBerry CLDC applications. You can create an application with alternate entry points and have the scheduleApplication launch a specific one. You can use this to tell whether the application was launched by the user by clicking on the icon on the home screen or by the scheduleApplication method. The following link explains how to create an alternate entry point.
How To - Setup an alternate entry point for my application
Article Number: DB-00008
08-29-2008 11:03 AM
Excellent, thanks! Sorry for the newbie question, but what are the advantages/disadvantages of creating a BlackBerry CLDC app versus a midlet?
08-29-2008 02:41 PM
A MIDlet is portable to other J2ME devices, where a BlackBerry CLDC application is not.
A BlackBerry CLDC application allows for the user of some BlackBerry specific APIs that allow for things such as:
Background processing (application can run in the background).
BlackBerry user interface (more closly resemble the built in BlackBerry applications and allows for more customization than a MIDlet).
Many of the APIs can be intermixed between the two types of applications with the exception of user interface classes and the MIDlet, Application and UiApplication classes.
09-23-2008 03:42 PM
One more follow-up question:
Will the PushRegistry launch events for midlets that the user has exited? Or do the midlets have to be running in the background?
09-24-2008 11:41 AM
10-15-2008 05:27 AM
You can use this to tell whether the application was launched by the user by clicking on the icon on the home screen or by the scheduleApplication method.
How do you do this? I need to find out if the user started the application or if is was started using scheduleApplication
10-15-2008 10:58 AM