Thanks a lot Matthew !
Colmerauer

"Matthew Darkstorm Bevan" <[EMAIL PROTECTED]> a �crit dans le
message news: [EMAIL PROTECTED]
>
> Use the following code to set or restore the default launcher
> application.  Replace 'Cre8' with your application's creator ID.  The
> change should be immediate.
>
> // Set... replace 'Cre8' with your creator ID.
> PrefSetPreference(prefLauncherAppCreator, 'Cre8');
>
> // Restore... replace 'lnch' with the system launcher ID.
> PrefSetPreference(prefLauncherAppCreator, 'lnch');
>
> Warning: a bug in your launcher may make your device unusable without a
> hard-reset!  LauncherIII has, on several occasions, crashed on startup.
> Reset, hit home, boom.  Armor your code against crashes!  (This is one
> case where a C++ smart pointer class comes in handy.)
>
> There was a recent discussion in this forum about writing an application
> that takes over the device completely - i.e. no other application can
> run.  Well, if you set your app's creator ID above, and for these other
> system preferences, there should be no way to run anything BUT your
> application.
>
> prefHard1CharAppCreator (hard buttons)
> prefHard2CharAppCreator
> prefHard3CharAppCreator
> prefHard4CharAppCreator
> prefCalcCharAppCreator
> prefHardCradleCharAppCreator (standard cradle sync)
> prefHardCradle2CharAppCreator (modem sync)
> prefAntennaCharAppCreator (if needed)
> prefDefaultAppCreator (the default app to run on reset)
>
> Having all of the above point to your application's creator ID will
> force your application to run always.  Be warned that your application
> will need to either handle all device management, or be able to run the
> standard launcher for some form of 'administration' mode.  Also, you
> will be 100% unable to hotsync.  Do not take over
> prefHardCradleCharAppCreator if you wish to be able to do a cradle-sync.
> (Cradle2Char deals with modem syncs.)
>
> Also, once your application is running, trapping all of the
> application-switching virtual characters (home, cradle, antenna, hard
> buttons, etc.) and handling them silently will nicely ignore attempts to
> switch out of your application.  This gets around the fact that, if you
> don't, your application will quit then get re-run by the system.
>
> --
> Matthew (Darkstorm) Bevan       [EMAIL PROTECTED]
> Margin Software, NECTI.  http://www.marginsoftware.com
>  Re-inventing the wheel, every time.
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to