Hi Scott,
Unfortunately, there isn't a _simple_ way to do this.  There is a simple way to 
switch to the Garmin program, but unless you can get Garmin to launch your app 
in return, you'll probably have to do a bit of work to get it done.  It's not 
impossible because as you pointed out, you can make your application "run in 
the background" by using alarms etc, but then you have to deal with all of the 
headache of not having access to your globals, etc.
Probably the easiest way would be to:
1. Register to get alarms every couple of seconds
2. Launch the Garmin app with SysUIAppSwitch
3. In response to the sysAppLaunchCmdAlarmTriggered check to see if the 
location has been reached
4. If the location has been reached, relaunch your application with 
SysUIAppSwitch
It's not pretty, but it should work.

Hope this helps!

-Jon

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Valerie Rock
Sent: Sunday, February 27, 2005 11:51 AM
To: Palm Developer Forum
Subject: How to Programmatically Switch to another Application (and then
back)


I am developing a program that constantly checks GPS
location signals on a Garmin iQue.  I need the program
to automatically switch to Garmin's map program until
a certain location has been reached (upon which it
switches back to my application).  Is there a simple
way to do this?  Does my program need to run in the
background, or can I accomplish this using
SysAppLaunch?

Any help would be appreciated.

Thanks, Scott


                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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

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

Reply via email to