Article # 566, added by Geoworks, historical record
| first | previous | index | next | last |

How to make app load on bootup.



Q. How do I make my application startup when the device reboots?
   And further, how would I make my application be the default
   app, instead of the Phone app?

A. To make an application start on bootup, you can change the .ini file.
   In the [uiFeatures] category there is a key called "defaultLauncher"
   which points to a geode under the SP_APPLICATION ("world") directory.
   By default it points to the Phone app on the Nokia 9000.

   If you just want your app loaded at bootup and not necessarily on
   top of other applications, you can use the "execOnStartup" key in
   the [ui] category. This key is a name list that specifies geodes that
   are to be launched but none will be on top because the [uiFeatures]
   "defaultLauncher" geode will be on top automatically.

   Here are some examples of how these might look:

[uiFeatures]
defaultLauncher = MyApp
defaultLauncher = EC MyApp

[ui]
execOnStartup = Extrapps\EC Test
execOnStartup = {
   Extrapps\EC Test
   MyApp
}

   To modify the defaultLauncher key, use InitFileWriteString(). To change
   the execOnStartup key, use InitFileWriteStringSection(). Be sure not to
   remove existing entries already there. And if you change the default
   launcher entry, it might be a good idea to move that app to the
   execOnStartup list.

   While you are testing with the EC demo, all names of apps must be
   preceded by "EC ". In the non-EC demo, remove the "EC ".