On Mon, Jul 12, 2010 at 8:30 AM, Samuh <[email protected]> wrote: > Mark>>>Do not not to poll frequently. > I am supposed to poll the server to update the client of the changes > in (almost/near) real time. The interval suggested was five minutes. > Is this too frequent?
Five minutes is so-so. I would make it configurable: http://www.androidguys.com/2010/03/29/code-pollution-background-control/ > Mark>>>No, you have to re-create your alarm schedule on a reboot. > So I will capture the BOOT_COMPLETE broadcast and setup a new > schedule. Yes. > This application was originally written for iPhone and there it uses > their Push Notification Service to keep the data on the device up-to- > date. I am supposed to port this application on Android so I am not > sure of the approach to take. In a year, C2DM will be the right answer. For today, AlarmManager polling should suffice. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

