what happen when I close the PDA

G

Guest

Hello

As I know, when I close the PDA it don't really closed my program like in PC.
I wrote a program that write to a log file every second using a timer.

When I closed the PDA, while my program was running and open it after 5
minutes, I saw that my program didn't wrote to the log file while the PDA was
closed.

I'm writing a program that is the main and only program that the user will
use on the PDA. I have some tasks that I want to stop when the PDA is closed,
and other that I want to keep running…

IS it possible? and How can I do that?
 
G

Guest

When you turnt he PDA "off" the processor typically suspends and DRAM is put
in self refresh. That means that when it's repowered, everything continues
where it was when it was powered off, but it also means that while off
*nothing* is running. This is important for power savings. If you were to
alter that behavior, the device battery life would be shortened a lot. If
you need task to run periodically, use a noticiation to wake at a specific
time, do the action, then go back to sleep.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top