'How to have an Android widget get notified when a specific setting changes?
A ContentObserver would work, but I do not know what Context's ContentResolver to register it to so that the ContentObserver is always registered while the widget is on the home screen.
If registered to an AppWidgetProvider (a BroadcastReceiver), it gets deleted almost instantly.
If registered to a Service, I believe it is not guaranteed to stay running.
How do I ensure that the widget always gets notified when a specific setting changes?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
