Menu

Notification from application to Widgets?

Help
Eva
2006-07-04
2013-04-02
  • Eva

    Eva - 2006-07-04

    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?

     
    • Anind Dey

      Anind Dey - 2006-07-05

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.