Working on an Android widget that needs to be able to receive a broadcast from my application installed on the device itself. Basically want to be able to to notify the widget/s when certain events occur so they can update rather than wait the full 30 minutes.
Custom action: "com.example.UPDATE"
It looks like static register isn't an option anymore for my widget to receive custom intent broadcasts from my main application since they are separate entities and from the documentation it looks like Google locked down what is possible with static registers. I wouldn't want to specific a single receiver anyways as I would like to be able to support multiple widgets and each receive the broadcast if they need to.
What would be the right way to dynamically register a broadcast receiver for a widget's context?
Would I register it in the onUpdate function of my AppWidgetProvider and just make sure its registered each time the onUpdate gets called? That provides a context I could register it to.