multithreading - How to implement two UI threads LWUIT in Blackberry? -


i writing application blackberry using lwuit. want display popup window while process carried out in window opened up. how can this?

thanks in advance, sajith weerakoon.

you can't have 2 ui threads, can background processing on separate thread created using new thread(x).start(); synchronize ui thread can use callserially/callseriallyandwait e.g.:

new thread() {     public void run() {         // whatever lwuit calls          display.getinstance().callseriallyandwait(new runnable() {             public void run() {                 // happen on lwuit thread, can whatever             }         });          // continue doing whatever     } }.start(); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -