I have widget that display data from content provider. I want to know when data in content provider changes. As far as I know way to do it is
context.getConte
An AppWidgetProvider
(or any other manifest-registered BroadcastReceiver
) cannot call registerContentObserver()
. The entity that is changing your content will need to update your app widget, or you will need to implement some sort of polling mechanism (e.g., check for new content based on android:updatePeriodMillis
).