Hi,

You may try to avoid the Treo to go to standard sleep mode (where network connections get closed) and keep it in REM mode (see Treo doc about the REM mode, specific to this device AFAIK). You should register to the hsNotifyRemSleepRequestEvent notification and respond to it the same way than to the sysNotifySleepRequestEvent notification. In REM mode, the keyboard and display are off and locked, but all other OS services are on and you app still goes on running. Of course, the device consumption is much higher than in standard sleep mode, but it's difficult to tell how much.

Also, you may listen to the sysNotifyNetLibIFMediaEvent notification to get informed of the network link having gone down (at least with the same accuracy than the network prefs).

Regards,
Seb

----- Original Message ----- From: Benjamin Bloomfield
To: Palm Developer Forum
Sent: Friday, December 30, 2005 8:57 PM
Subject: How to keep a Treo connected to the Internet?


Hello all,

I am wondering if there is any way to keep my Treo 650 from having to reconnect to the Internet if it has been too long since I last used it. It's just that it's annoying to have to wait everytime our app is loaded for the device to connect to the Internet.

I tried having a timer run every 10 minutes to open the Net Library and then close it. The problem with this was, it would still do this even if I was in the middle of doing something on the device, and it turned on the screen when it was off.

Another question I have is: why does the Palm need to reconnect if it's been too long? Would it be bad for battery life if I kept the Internet always on like this? Blackberrys never seems to need to perform this connection step.

Any ideas are greatly appreciated.  Thanks.


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

Reply via email to