Telepathy. ;) Actually, you really can't know, since the user
can push the off button at any time, and the unit is suddenly off.
You can, however, catch the power keypress, and use that. Due to
the rather nice auto-off feature, you can have your application
open,and have the machine off to conserve power. Then, when you
want to get to your app, you can power it up again and you're right
back where you left off. Catching the keypress is really your only
option...the question is...why would you want to do this?
-Rus
>-----Original Message-----
>From: Pilot Pogrammer [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 22, 2000 10:11 AM
>To: Palm Developer Forum
>Subject: Re: Does app get notified when Palm switches "off"
>
>
>If I do it that way I get the time the system waits until entering
>sleepmode, but how will I now when it really is about to enter??
>
>Nesse, Rustin <[EMAIL PROTECTED]> wrote in message
>news:21917@palm-dev-forum...
>>
>> >But I wanted to know when the Palm goes to sleep???
>> >
>> >
>> Aha, you should have said so. Check the auto-off time. The
>thing is,
>> you're not going to be doing "behind the scenes processing" while the
>> Palm is in sleep mode...but you can get or set the value of the
>> auto-off time, SysSetAutoOffTime (UInt16 seconds) or
>> PrefGetPreference(prefAutoOffDurationSecs), and work from there.
>>
>> -Rus
>>
>>
>
>
>
>--
>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/