synchronized (Application.getEventLock ()) gel my app on the new BB 6 devices (for example 9800)

Hello guys.  Please see my code:

 public void run_my_thread()
 {

    myThread = new Thread(new Runnable()
     {
       public void run()
       {
           try {
                synchronized (Application.getEventLock()) {

                    browserContent.finishLoading();

                }
            } catch (RenderingException e) {
                // TODO Auto-generated catch block
            //  Dialog.alert("blyat "+e.getMessage());
            }
            catch (Exception es)
            {
            //  Dialog.alert(""+es.getMessage());

            }
            return;
       }

     });

     myThread.start(); 

 }

Can someone help me solve this problem? If I have it running on emulators/devices<6 (="" 9800)="" than="" all="" good.="" i="" don't="" have="" error="" or="" something="" .="" but="" when="" i="" running="" on="" emulator=""  blackberry="" 6.0.0.141=""  9800="" than="" my="" app="" are="" freezing="" .="" i="" know="" -="" it's="" realy="" problem="">

 synchronized (Application.getEventLock())

but I do not know how to resolve this (())

also, I found a similar problem http://supportforums.blackberry.com/t5/Java-Development/browserContent-finishLoading-hangs-on-OS-ver...

but he has not found a solution for my problem. Need help browserContent - browserFIeld no because.<-- this="" work="" only="" for="" v6="" but="" how="" about=""><6  so="" if="" any="" one="" know="" how="" to="" fix="" please="" tell="">

Please help me.

Best regards, Peter.

PS hope you understand me, sorry for my bad English

the javadoc says:
This method should not be called on a UI event Dispatch Thread.

and if you synchronize on the eventlock you do exactly that.

where is the code where you add the field to your form?

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Need help with installing the driver Vista for Satellite A200-23U

    INSTALL THE WINDOWS VISTAN ° Version of the component name1 Windows Vista RTM2 native Intel ICH7M Chipset utility3 945GM Intel display driveror3 nVIDIA Display Driver G72MV-A3/NB7P-GSRealtek Audio driver ALC861D 45 Realtek 8101E 10/100 / Driver LAN G

  • transfer to iPhoto

    Hello! I'm new to the community, so I'm going to say hi first. My name is Thomas and I am a student. I have a Macbook pro 2.4 GHz processor Intel i5 - OSX 10.9.5 I would like to create a folder with my photos from iPhoto. I would like to export so th

  • Develop a new VI read a laser sensor

    Hello I'm not sure that I put my message in the right category, but here goes. I need to develop a VI for application of laser-sensor measurement in an existing VI in order to obtain a display HMI and subfunctions interface program.  My request suppo

  • Windows 7 does not recognize any keyboard, except the v1.0 of MS natural ergonomic Keyboard 4000 defective

    I have a very strange problem. I have a desktop computer Windows 7 64-bit edition, all of a sudden about a third of the keys on my Microsoft Keyboard stops working. So, I bought a new generic keyboard. The problem 1. If I plug the natural ergonomics

  • Windows 7 causing Audio & Microphone to stop working

    I have a Sony Vaio VGN-Z21WN, which came with Windows Vista.  I later upgraded to Windows 7 Ultimate. In recent weeks, the audio doesn't work with the microphone.  I tried to install the drivers more late two Sony & Realtek Web sites, but nothing wor