@Override
  public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
    // Update each of the widgets with the remote adapter
    for (int i = 0; i < appWidgetIds.length; ++i) {
      RemoteViews layout = buildLayout(context, appWidgetIds[i]);
      appWidgetManager.updateAppWidget(appWidgetIds[i], layout);
    }
    super.onUpdate(context, appWidgetManager, appWidgetIds);
    // wtf another google bug?
    this.onEnabled(context);
  }
@Override
  public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
   
    for (int i = 0; i < appWidgetIds.length; ++i) {
      RemoteViews layout = buildLayout(context, appWidgetIds[i]);
      appWidgetManager.updateAppWidget(appWidgetIds[i], layout);
    }
    super.onUpdate(context, appWidgetManager, appWidgetIds);
   
    this.onEnabled(context);
  }
@override public void onupdate(context context, appwidgetmanager appwidgetmanager, int[] appwidgetids) { for (int i = 0; i < appwidgetids.length; ++i) { remoteviews layout = buildlayout(context, appwidgetids[i]); appwidgetmanager.updateappwidget(appwidgetids[i], layout); } super.onupdate(context, appwidgetmanager, appwidgetids); this.onenabled(context); }