You can set MIDlets running in the manufacturer or operator domain to start automatically on device boot. For example, a pre installed e-mail application can be automatically started to the background on device boot, and the user can bring the application to the foreground when notified about new e-mails.
Other aspects of auto-starting a MIDlet are the same as manually starting a MIDlet. If a MIDlet set to start automatically is closed, the user can always restart it manually.
To set a MIDlet to start automatically on device boot, use the Nokia-MIDlet-auto-start
JAD and JAR manifest attribute. The possible values are:
yes
sets the MIDlet to start automatically
on every device boot.
no
disables auto-start for the MIDlet. The
user must always start the MIDlet manually.
once
sets the MIDlet to start automatically
on the next device boot following the MIDlet installation. The MIDlet
does not start automatically on subsequent device boots.
Note: The attribute must be given both in JAD and JAR manifest, and the value of the attribute must be the same for both.
For example, to set the MIDlet to start automatically on every device boot:
Nokia-MIDlet-auto-start: yes
Nokia-MIDlet-auto-start
is supported since Series
40 3rd Edition FP 2 and Java Runtime 2.2
for Symbian. Only MIDlets that run in the manufacturer or operator
domain can use Nokia-MIDlet-auto-start
.