>Subject: can palm run 2 applications at once?
>From: "Jeremy Lindsey" <[EMAIL PROTECTED]>
>
>I'm curious as to what happens to an application when a user returns to =
>the home menu and opens another application.  It appears that returning =
>to the home menu completely terminates the previous application.
>
>Assuming this to be true, then I'm wondering if it is possible to keep =
>an application running in the background when another is opened.  I have =
>an application that requires periodic HTTP communication.  Is it =
>possible for a user to open my app, then leave it working when in the =
>background when they switch to another application?
>

Keep in mind, that on Palm OS, programs are not loaded and unloaded
(except for those on external cards).  And they receive notifications and
get events on a regular basis.  But only the 'foreground' program has 
access to globals (although there are tricks around this restriction).

You have to ensure the 'background' application(s) don't impact the
the current 'foreground' application.

One good time to run your task is after you get the "going to sleep" 
notification and then use alarms to run periodically while the unit 
is asleep.  Watch out for battery usage though!

Roger Stringer
Marietta Systems, Inc.


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

Reply via email to