Startup using RegisterAlarm

Hi,I've written an app that uses registerAlarm to restart the app after a certain amount of time. When the app starts via the alarm, is there any way of identifying that it was the alarm that started the app and not the user?ThanksIan
[263 byte] By [ianpaulstraina] at [2007-11-27 9:33:52]
# 1

Probably not.

For a good writeup on using the push registry, download http://developer.motorola.com/docstools/technicalarticles/Push_Registry_20060301.pdf. (You will require a free registration)

One possible approach that comes to mind is to store a time as close as possible to the exit of your MIDlet, using rms, and determine the interval to the next run. Of course, it's not foolproof, the user may just launch the MIDlet at the same moment it's to be scheduled.

Regards, Darryl

Darryl.Burkea at 2007-7-12 22:56:27 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Probably not.

For a good writeup on using the push registry, download http://developer.motorola.com/docstools/technicalarticles/Push_Registry_20060301.pdf. (You will require a free registration)

One possible approach that comes to mind is to store a time as close as possible to the exit of your MIDlet, using rms, and determine the interval to the next run. Of course, it's not foolproof, the user may just launch the MIDlet at the same moment it's to be scheduled.

Regards, Darryl

Darryl.Burkea at 2007-7-12 22:56:27 > top of Java-index,Java Mobility Forums,Java ME Technologies...