PalmOS 1.0 & 2.0 bite in this respect (no offense). In both these
versions of the OS, the launcher (the standard PalmOS 'application icon'
view) can run in the background (when your app is running) or in the
foreground (when your app is hidden).

If you enter your application and then tap 'applications' you will NOT
see an appStopEvent because the launcher has simply moved to the
foreground and your application placed in the background. If you THEN
select ANOTHER application to launch your application will THEN receive
an appStopEvent. Of course if you select your application again it
simply gets swapped to the foreground again and I think the ONLY event
you see is a 'winEnterEvent'.

You can detect when your application has been placed into the background
by looking for keyDown events on the 'appLaunchKey'. At least that's how
I do it, or maybe a 'winExitEvent' but of course you see these all the
time if you're display alerts etc.

Fortunately Palm Computing removed this annoying feature (which has no
merit that I can see other than to confuse application developers) in
PalmOS 3.0 and higher.

Hope that helps!

Stuart Nicholson
Programmer
Firepad Inc.

> ----------
> From:         Oleg Alpatov
> Reply To:     Palm Developer Forum
> Sent:         Tuesday, July 18, 2000 12:55 PM
> To:   Palm Developer Forum
> Subject:      appStopEvent and PalmOS 2.0
> 
> Hi, all.
> 
> When I tap "Applications" icon, PalmOS 3 sends appStopEvent into
> my active application and brings me into App Launcher.
> 
> Could anyone tell me what happens in PalmOS 2 in this situation
> and how should I handle this?
> 
> Thanks,
> Oleg
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> 
> 

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

Reply via email to