Being an Android developer, I pay a lot of attention to how other developers do things on my Android devices.

One thing I see a lot of are apps which do periodic polling for content (e.g. WordPress) which leave a service running to handle the polling.

This is not very efficient, and is rendered unnecessary by the Android SyncAdapter class, which lets you abstract the data source, the authentication, and the sync code.

In other words, it makes periodic sync to webapps a snap.

If you’re doing something simple, there’s also the IntentService, which when fired by a PendingIntent from an AlarmManager periodic alarm can handle your sync task in a lightweight manner.

Advertisements