Additional

Advertisement

WidgetUpdateHelper

This library helps managing the updates of widgets. Just update all your widgets on background thread with android.app.IntentService, that provides that library. It's provide an easy and simple way to update app widgets.

How to use WidgetUpdateHelper

WidgetBuilder

There is an abstract class WidgetUpdater, which has only two methods: abstract update(Context context, Bundle dataBundle, int... ids) and makeNotification(Context context) with default implementation.

When creating your own widget you can use RemoteViewsUpdater annotation to link the WidgetUpdater's child with your android.appwidget.AppWidgetProvider as below. WidgetUpdateService is an android.app.IntentService which will invokes your WidgetUpdater by calling method updateWidgets(Context context, AppWidgetsProvider provider, Bundle dataBundle, int... ids).