Hi,
the example SimpleApp helped me to see how you can send a notification from a Widget to the application. Now I wonder how this works the other way round. Can you tell me how to send a notification from an application to the widgets?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are 2 ways that an application can send information to a service:
1) create a service for your widget and have your application call that service, or
2) override the "empty" runWidgetMethod in your widget. This method handles all calls to the widget that are not automatically handled by the Widget class.
The first way is more appropriate if your" notification" is really a service call. If it's not a service, then use the 2nd method.
Anind.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
the example SimpleApp helped me to see how you can send a notification from a Widget to the application. Now I wonder how this works the other way round. Can you tell me how to send a notification from an application to the widgets?
There are 2 ways that an application can send information to a service:
1) create a service for your widget and have your application call that service, or
2) override the "empty" runWidgetMethod in your widget. This method handles all calls to the widget that are not automatically handled by the Widget class.
The first way is more appropriate if your" notification" is really a service call. If it's not a service, then use the 2nd method.
Anind.