このようにサービスからウィジェットを更新しています(サービスとウィジェットクラスは2つの異なるパッケージにあります)
AppWidgetManager widgetManager = AppWidgetManager.getInstance(this);
ComponentName widgetComponent = new ComponentName(this,MyWidgetProvider.class);
int[] widgetIds = widgetManager.getAppWidgetIds(widgetComponent);
Intent update = new Intent();
update.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, widgetIds);
update.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
sendBroadcast(update);
それは私のウィジェットを更新しますが、問題は、すべてのウィジェットが更新された後に私のウィジェットが更新されるため、デバイスの他のウィジェットも更新することです。
だから今、ウィジェットだけを更新したいのですが、どうすればそれを行うことができますか