I've installed a task manager widget that shows me the amount of free memory I currently have in the icon of the widget. When I look at it it updates every ~3 seconds, so it definitely drains some battery and consumes some memory when it's active and updating.
I want to make sure it doesn't update when the widget is invisible:
- When screen is turned off.
- When another app is running.
- When widget is placed on another (invisible) home screen tab.
How can I check whether the widget updates only when it's visible or even when it's invisible?