In a widget I've to set two different actions, I've got a Widget.class and a WidgetConfig.class
onUpdate (then I will change the refresh rate from provider.xml) I've to call a function on WidgetConfig.class like WidgetConfig.routine(parameter1,parameter2)
On button_click I've to call another routine in WidgetConf.class like WidgetConf.routine2(parameter1,parameter2)
How could I call that routine from the widget Button?
Example: Every X time the widget autoupdates (change color by returned function value) Only on click the widget must call another function and then do an update