Sweet! Thanks for the reply and looking forward to that API. Christoph
On Sat, Feb 7, 2009 at 8:57 PM, Jean-Baptiste Queru <j...@android.com> wrote: > > There is something like that in cupcake. I forgot the exact API name, sorry. > > JBQ > > On Sat, Feb 7, 2009 at 10:19 AM, Christoph Studer <chstu...@gmail.com> wrote: >> >> Would it make sense to create a central scheduler for services that >> need to run periodically? >> >> There are a lot of application that want to run at periodic intervals, >> require network access and need to keep the device awake during their >> work. Instead of each app having to use an AlarmManager, a WakeLock >> and its own network availability checking / auto-retry, wouldn't it >> make sense to provide an API that would do that work? >> >> Also, if you have a lot of apps on your device with background checks, >> they run on different schedules and wake the device up more frequently >> than if they'd run on a synchronized schedule. >> >> Ideally, I'd imagine this service scheduler to provide the following: >> * Application can register and unregister service intents for a >> certain schedule. >> * Provide schedules an app can register for. These could be constant >> such as a frequent schedule (every 10mins) and a less frequent one >> (every 60mins), or maybe user configurable. >> * Apps can specify a network filter, i.e. only run when connected via >> wifi, 3g, 2g... >> * Services would signal to the scheduler when they're done, possibly >> with an error code such that the scheduler could retry automatically >> out of the ordinary schedule. >> * Provide a UI for users to change schedules, unregister services, etc. >> * Define and require permissions for schedules such that users could >> see how much "battery drainage" an app is causing. >> >> I really think this would be quite useful for developers and users >> likewise. This central service scheduler could be part of the >> platform/SDK or it could be a user APK, much like some of the OI >> components already available. >> >> Any thoughts? >> >> Christoph >> >> P.S.: Not sure whether android-developers is the right mailinglist, >> but it does not quite fit into any of the others, either. >> >> > >> > > > > -- > Jean-Baptiste M. "JBQ" Queru > Android Engineer, Google. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---