09-10-2007, 11:09 AM
Join Date: Aug 2007
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Updating UI from a callback method
Please Login to Remove!
I have a mainscreen that I push using the current UiApplication appearing on the screen.
I register a listener to an object present in myScreen. When the listener calls the callback method, i want to update myScreen with new fields.
I learnt that the thread where the callback method is being executed is not the eventDispatchThread using the UiApplication.isEventDispatchThread(). I tried doing as follows but get an IllegalStateException:
public void run()
// Add new fields to the mainscreen already pushed.
Can someone please help me understand what I am doing incorrectly?