Hi, Connecting to internet continously or polling is likely to cause drain on battery. ( http://groups.google.com/group/android-developers/search?group=android-developers&q=battery+life&qt_g=Search+this+group ).
Lots of people are going to write apps that poll server. Each one will need configuration on how often to poll. And user will have to configure in each app. If he configures every 15 min in 3 different apps and each start poll at a different point in time he will be connecting to the internet thrice every 15 min. Not nice. Suggestion 1. Set up a Internet polling mechanism for polling the internet defaulting to every fifteen minutes. User can change this setting in one place. Allow services / apps to subscribe to this service. IPM(Internet polling mechanism) wakes up one service at a time. service polls internet does whatever it wants and goes back to sleep. Now each app has to initiate a connection and close it, which from my very basic understanding will slowdown the whole process and again drain battery. Instead IPM opens a socket and hands socket to each service round robin fashion. Service only indicates done. When all subscribers done IPM closes down connection. Question Does this make sense, I am no TCP stack or Mobile phone expert. Will somebody with more knowledge pitch in please. gk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

