View Single Post
  (#2 (permalink)) Old
Dougsg38p Offline
CrackBerry Addict
 
Posts: 815
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 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().
   
Reply With Quote