Two options I've used that work well. One is to make your application (or whatever class you want to receive the event) implement GlobalEventListener, and then from the thred:
Code:
UiApplication app = UiApplication.getUiApplication();
ApplicationManager appMgr = ApplicationManager.getApplicationManager();
appMgr.postGlobalEvent(app.getProcessId() , 0xbc50f865b0f97608L, 0, 0, e, app);
In the receiving class, you MUST override eventOccurred
Code:
public void eventOccurred(long guid,int data0,int data1,Object object0,Object object1)
{
if(guid == 0x4e1c549a48dcd405L)
{
m_AppInfo = (AppInfo)object0;
}
If you just want to pop a Dialog, this is probably easier:
Code:
UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run()
{
Dialog.inform(_resources.getString(STR_NO_COVERAGE));
}
});
Regards,
jeff