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.getContentResolver().registerContentObserver
But AppWidgetProvider.onEnabled method is not called when I add first instance of the widget.
That's why I can't make registerContentObserver
.
The same with onDisabled.
How to solve this problem?
Thanks