>From memory there is no way to distinguish that situation from a normal
"user tapped the icon" launch. If you *really* need to know (and the
wuestion that springs to mind is why?) maybe you could have a small stub
that was mapped to the hardkey, and all it did was call your app with a
custom launch code indicating that it came via the hardkey press? Prolly not
appropriate except in a vertical app case though...

Gavin.

-----Original Message-----
From: Scott Dreslinski [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 December 2001 3:55 PM
To: Palm Developer Forum
Subject: App Launched from where?


If I have my application mapped to a hardkey, does anyone know a way to tell
if my application was launched from the launcher menu, or from the hardkey?

I have tried checking if the hardkey is pressed when I am launched, but the
hardkey only has to be pressed briefly to launch my app, and by the time I
start, it can already be released, so it is a real race.  I am looking for
some type of event or launch flag to tell me.

Thanks,
-- Scott



-- 
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