Skip to main content

LWUIT form didn't showed up when midlet start on the blackberry

2 replies [Last post]
bayu.utomo
Offline
Joined: 2011-10-24

hi guys,

i have some trouble when running LWUIT midlet on real device.

In blackberry simulator, my midlet works fine. The form is showed up well. But when I try to run it on real device, it didn't work. The midlet seems run, but the form didn't showed up.

Any idea what happen??

I'm using same version of simulator and real device. The BB 8520.

Thanks for your advice.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bayu.utomo
Offline
Joined: 2011-10-24

hi guys,

I have solved my problem.

There may be differences between simulators and real devices on blackberry when they load my MIDlet code. In the simulator, all the code are loaded perfectly, but in real devices, there may be a part of my code is not loaded completely before the form appears. So, i add a splass screen to get some delay time before form.show() and then it worked perfectly in both simulator and real device.

Thanks

vprise
Offline
Joined: 2003-11-07

On RIM things like this usually happen because people show a form in startApp or the main method (on the RIM thread not the LWUIT thread). RIM is very sensitive to threads and should always use the EDT to interact with LWUIT apps.