Dana Long wrote:
My application needs to go back to its login form if there is no user input for a specific period of time. I am using AlmSetAlarm() and launch code sysAppLaunchCmdDisplayAlarm to do this.

In my AppHandleEvent() function I set the alarm to expire in N seconds. Each time the user performs an action, the alarm is reset. I handle the sysAppLaunchCmdDisplayAlarm command in StarterPalmMain() by calling AppStop(), then AppStart() and then FrmGotoForm(LoginForm). When the application exits I cancel any pending alarm so it won't occure while I'm outside the application. This seems to work fine.

Is there a better way to accomplish what I'm trying to do? This seems kind of kludgy to me.

If you're set on restarting the app, then I agree w/ the earlier poster that SysUIAppSwitch() would be a better way to restart.
However, would it work to simply display the login screen and return to where the user was before the app timed out?


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

Reply via email to