Tuesday, August 10, 2010

Development Tip: Widget Updates

After battling with a complex widget design for the past couple of weeks, I've made a hard found observation. You must set all non-static widget fields on each update, even if the values haven't changed since the last update.

The reasoning behind this is if the widget is dropped out of memory and reloaded, it will display only the most recent update. Meaning any data from previous updates will be forgotten, leaving the widget with a partial update.

Doesn't sound very efficient to me!

No comments:

Post a Comment