سؤال

In my app I have got two different appwidgets. Both show and edit the same value.

Both widgets are working fine. My question is: how can I call the onUpdate of the second widget when I edited the value in the first one? Thank you for the answers!

هل كانت مفيدة؟

المحلول 2

I solved my problem by using different broadcasts for each widget. This should be the easiest solution.

نصائح أخرى

See this link

Call the updateAppWidget method of the AppWidgetManager passing in the Widget ID of the widget you want to update and the RemoteViews to update it to.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top