I dont know if there is any online help for this topic, it was somthing I just did on my own. First, if you are setting it up for a update of the application (ie new version) 15-20 mins is way to high. You should set it to something around 1day-1week. It takes up system clock ticks to connect to the internet and get a responce. In this time no other appication can use the cpu. if it is checking for an update for something that may be changed every day, then checking every hour may be needed. But you will most likely not have a new version of your app very often, so 15-20 mins is too much. Think of it as a ratio, if you are checking for an update 1000 times for every 1 time there is an update, you are wasting time. if you check 3 or 4 times an hour, that is 50-75 checks a day, and it may only find an update once a month. That said, if you do need it to check very often, you probaly wont need to reset the alarm after a reset in the same manner as if you are setting it to update every few days. The only reason I was forced to write the code to reset the alarm so that it would go off at the same time no matter how many resets was b/c some of the options for the timer are 1 week, 2 weeks, 1 month, 2 months, and it not likely that someone will not have a reset in that time. Without doing it my way, someone would have to not have a reset for the amount of time the alarm is set for before they would get an update. If you end up setting it to update every 15-20 mins, all you will need to do is simply reset it to that same amount on a reset. If you do need to ensure that you keep the right update time you will need to save the value of the alarm (nnumber of seconds from jan 1 1904...) in a database, and then on a reset put that value back in. Then when you get the alarm launch, calculate the next value you will need for the next alarm (current seconds + number of seconds till next update). Hope this helps, Let me know if you need any more help on this topic.
-- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] "Andre Augusto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Everybody! > I have a program that needs, from time to time, to communicate with > internet automatically. The program needs to open a connection and make a > query to a RemoteDatabase. What I need to know, is how to program my > application to do that? Maybe it's on my AppEventLoop function... I only > want to know what can I put here, maybe a time trigger.., because I have > already the functions to communicate to internet via Wi-fi... > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
