> Right now my program, McPhling, traps
> sysTrapSysAppLaunch.  Ultimately I'm looking to having
> it open up the last open address so I'm looking into
> trapping sysTrapSysUIAppSwitch instead.  Any idea on
> how to do this?

If you want to detect when the user runs Address, either by pressing a hard
button or by tapping on Address in the Launcher, patching SysUIAppSwitch
should work. I don't have any experience patching traps, so you'll have to
figure it out yourself. But if you've managed to patch SysAppLaunch, I'm
sure you'll be able to figure out SysUIAppSwitch. Check out the sources for
the UIAppShell app if you haven't already. UIAppShell calls SysAppLaunch to
do the launch. So, in the end, SysAppLaunch gets called for both launches
and sublaunches. This makes me wonder why you want to switch (no pun
intended) to SysUIAppSwitch.
-
Danny

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