|

07-02-2009, 01:44 PM
The UI is a single-entrant single-threaded component, and can only be accessed from the event thread.
The FolderListener thread actually belongs to another app (the message app).
A common practice is to:
1. Fire a custom global event to your application, which implements GlobalEventListener
2. From the GlobalEventListener, create a runnable object that performs the UI operation, and call it using UiApplication.invokeLater().
|