Hi,
I have made a simple clock widget that refreshes every 10 second. But it consumes very much ram.
I want that it should update only when i am on home screen ..
Please help !!
Thanx in advance.....
clock widget
Moderator: Martin
Re: clock widget
Hi,
Updating a widget every 10 seconds probably consumes a lot of resources so I would reduce the update frequency if possible.
You could disable Automatically refresh in the settings of the widget and use a global variable to show the time in a text field with {global_time,dateformat,HH:mm:ss}. You can assign the current time to the global variable from a flow to update the widget. An action Script like this should work in a flow:
global_time=getDate();
You can use all triggers and conditions available to flows to decide if your widget should be updated or not. You could also disable the flow when an app is started and enable the flow again when the home screen is shown.
Regards,
Martin
Updating a widget every 10 seconds probably consumes a lot of resources so I would reduce the update frequency if possible.
You could disable Automatically refresh in the settings of the widget and use a global variable to show the time in a text field with {global_time,dateformat,HH:mm:ss}. You can assign the current time to the global variable from a flow to update the widget. An action Script like this should work in a flow:
global_time=getDate();
You can use all triggers and conditions available to flows to decide if your widget should be updated or not. You could also disable the flow when an app is started and enable the flow again when the home screen is shown.
Regards,
Martin