View refresh pattern please
Please Login to Remove!
Hello
I have an app that syncs its data model in a separate thread.
I have a refresh method in my MainScreen that updates the view of the model.
If I add a menu item that invokes the refresh method, it works just fine. But, I'd like to just periodically update the view, maybe in a TimerTask. When I try this, I get an illegal state exception.
I'm interested in common patterns for what I'm trying to do and maybe a code snippet that would help or a pointer to a sample project that does this.
Thanks
|