Posted by wsnyder6
on July 9, 2008 at 3:41 PM PDT
Finally figured out how to tweak the LWUIT demo so that it will run on a BlackBerry device...simulator.
This will be short and sweet.
To work around a race condition (see this thread ), LWUIT needs to run on a separate thread on the Blackberry. Taking this into effect, together with a modified LWUIT distribution (removing references to M3G helper classes and the 3D Transition classes), I've finally got the demo to work on a simulator.
Granted, this in the JDE, not NetBeans. I need to figure that out yet.
In the JDE, make sure you have the modified LWUIT dist set up as a library type project, and then make your a LWUIT midlet project dependent on that library.
Oh yeah, since LWUIT really relies on the presence of soft keys, you may want to use the BlackBerry UiApplication class to catch key events and wheel events, then translate those to the corresponding UI action. But you can also keep the same q/w and o/p softkeys in place.
Proof that it works!