@Override
 public void onDeleted(Context context, int[] appWidgetIds) {
   // When the user deletes the widget, delete the preference associated with it.
   final int N = appWidgetIds.length;
   for (int i = 0; i < N; i++) {
     ItemAppWidgetConfigureActivity.deleteItemPref(context, appWidgetIds[i]);
   }
 }