>Our Visor card has a startup program that does something small and then
>launches another program.
>When the second program exits (normally), the starter program is
>automatically
>launched and the whole things starts over again.

Well, as I'm sure you know, the normal practice of a Palm OS application is
to not exit, until/unless the user chooses another application to launch.
The "run the last app" is simply a fallback technique for when apps quit of
their own accord, without specifying what app to launch next.  So
"normally" isn't the word to use in this situation, if the user didn't tap
"applications" :-)

Sounds like your second application isn't a standard kind of UI application
which runs for some period of time, right? Some sort of "second half" of
the startup app, to initialize the card or hardware or whatever?

I don't know the specifics of your application, but perhaps your starter
program should just do a sublaunch of your small second program, so that
the starter can then exit back to the app that the user was running before
they dropped in your card.  It depends on what your card is, what it does,
what your second program is and does, and what the user would want to have
happen.

If all else fails you could have the startup app look at the system's
global variable indicating what was the previously running app, so it could
tell the second app, so the second app could launch it when it was done.
That's ugly, and would not be guaranteed to work in the future.  If
possible, go for a sublaunch of the second app.

-David Fedor
Palm Developer Support


Reply via email to