Hello
Perhaps I should have worded my question better. I don't actually want a
background task in that sense but rather an application that is always
running in the background. I want to be able to write a device driver that
reads the serial port (done all that stuff), processes it and enqueues
events into the system queue. I can't have the application always running in
the foreground as I want the user to be able to run up other applications
such as memopad or whatever (then this user chosen application will pick up
the system events that I posted from my background application).
How do commercial keyboard drivers etc do this?
Regards.
Gary
-----Original Message-----
From: Roger Chaplin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 12, 2000 12:51 PM
To: Palm Developer Forum
Subject: Re: background task
Metalle Gary-GMETALL1 <[EMAIL PROTECTED]> wrote:
> How do I run a background task for a device driver type application?
You can't. Palm OS provides only a single-tasking environment for user
applications. Your app can set alarms for itself, and perform arbitrary
processing when the alarm occurs, then set another alarm, etc. That is
about it for background processing capability.
The Palm OS Companion (PDF document available from the Palm developer
site) gives a very good description of the Palm OS run-time
environment.
--
Roger Chaplin
<[EMAIL PROTECTED]>
--
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/