Not good GlobalEventListener job...

Hi all

I want to my request to listen to a global event, but it does not work as I expect.

Please give me some suggestions... Thank you.

First of all:

I add my request as GlobalEvent

    private AppManager() {
        addGlobalEventListener(this);

        .....
        .....
        postSomeGlobalEvent();// here it will not work...
        while(!received){
           wait();
        }
    }

    public void eventOccurred(long guid, int data0, int data1, Objectobject0, Object object1) {
        if(guid==0x82d20a2c9c1c6e55L){
            received = true;
            return;
        }
     }

so I think that because it was fully charged, I changed like this:

    private AppManager() {
        addGlobalEventListener(this);

        .....
        .....
        //postSomeGlobalEvent();// here it will not work...
        //while(!received){
        //   wait();
        //}
    }

    public void eventOccurred(long guid, int data0, int data1, Objectobject0, Object object1) {
        if(guid==0x82d20a2c9c1c6e55L){
            received = true;
            return;
        }
     }

    public void activate() {
        super.activate();
        postSomeGlobalEvent();// here it still does not work...
        while(!received){
           wait();
        }
    }

Thanks in advance!

If you call wait your object waits for a notification. a global event does not act as preventing, so your object is always waiting and cannot run eventOccured. Maybe you can put forward in a thread?

Tags: BlackBerry Developers

Similar Questions

  • aspect ratio of Mozilla is not good

    After changing my windows, the aspect ratio of Mozilla is not good (the letters are too small and the page is ok or letters are ok and the too big pages - added below images). Before changing the windows, everything was fine. It seems as if my screen is too small to Mozilla, although the proportions of all the other programs is fine. I tried to Zoom in and out the page and the letters, but nothing helped.

    It seems that the problem was in the drivers for my graphics card. Thank you very much for trying to help, I appreciate it a lot!

  • Can not good press the mouse on the name of the file and get the option of e-mail

    Can not good press the mouse on the name of the file and get the option of e-mail

    Hello! If I understand your question, you want to right-click on a file and attach it in Mail. To do this, click on the file with two fingers on the touchpad, or control + click on the file, select 'Share', then 'mail '.

    I hope this helps!

  • Display the Browse on Firefox is not good

    I am using a navigation button in my HTML, workng is fine, but on firefox-30 view of my button browse is not good, can someone help me to fix it in my code?

    Is it possible that this field is 'necessary' and what is called by a rule for admission: required in your CSS? This is not new in Firefox 30, but perhaps it was twisted (there are hundreds of variations in each version...). Otherwise, it is hard to imagine why you'd have a ring after using the control and not before.

  • How to create a new my sign? new update because not good very uncomfortable

    How to create a new my sign? new update because not good very uncomfortable

    Have a look here: Restorer of Classic https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ theme

  • Not good with 2 recovery cd recovery OS?

    During an installation of audiocatalyst, I have a problem with, and then the entire system failed not woork correctly. Especially could not watch the monitor for 4 to 6 minutes more and you get headaches and the eyes are tears to shed. Then I start the installation with the format of the system restore CD BUT THE PROBLEM REMAINS THE SAME
    How can I solve this problem?
    That's the problem of not good reading dvd - rom?
    This is a problem with the HARD drive?
    This is a problem with the software on cd? (ever, I had a problem with, why now)...
    Can anyone hepl solve me before throwing it
    It's a SATELLITE 1950 S902

    Hello

    Looks like you have a hardware problem on your screen. I think you need to take the laptop to the service.

    Good bye

  • Satellite U400-112 - WoW problems and the image is not good

    Hello!

    My laptop is Satellite U400-112 and matching video Intel X 3100.

    When I play in openGL, 3D graphics on minimum and the image quality are not good. The same situation with Direct3D even worse. I have a guess - the game not installed, I copied the folder with the game on another computer, maybe I need to reinstall? I installed the latest drivers for the video of the official website of Intel.

    Maybe someone have the same problem and can help me to solve it.

    Hello

    This only happens on the world of Warcraft or in other games too?

    I'm a bit confused because you have set the minimum graphics and then you wrote that the photo isn't good in my opinion that's normal as the photo isn't good, if you play on minimum graphics settings.
    Maybe you can post a screenshot screen or something else.

    You also need to update DirectX version on your laptop that you can find on the Microsoft Web site.

  • When it is connected to the television sound is not good enough

    Hi all

    I bought a Satellite and try to connect to the TV by before taking. The sound is not good enough.
    Who can get better?

    What do you mean not enough? The volume is too low or what?
    Go to sound and audio devices in the control panel and check all orders if they are set at the higher level.

  • My Outbox is suspended (swirling circle) with a large attachment... It's been 4 days now and beneficiaries become the subject of the email, but no attachment every few hours. I tried airplane mode turn off etc. and not good. Help!

    My Outbox is suspended (swirling circle) with a large attachment... It's been 4 days now and beneficiaries become the subject of the email, but no attachment every few hours. I tried airplane mode turn off etc. and not good. It seems that I can not stop the email to send so that I can access and delete it. Help!

    delete the account and set it up again

  • HP Pavilion: spooler will not delete print jobs

    Printer spooler will not delete print jobs.  The status is: Error - sent to the printer.  Canon has tried to help by using several methods to remove print jobs in the spooler.  None of them worked.  What I can do next.  Thank you

    Hello

    Please click HERE to access the procedure which should solve the problem.

  • locked out my hotmail. Maybe hacked by stranger. have changed the password. not good

    locked out my hotmail.  Maybe hacked by stranger. have changed the password. not good

    Please send me answers * address email is removed from the privacy *.

    Please visit the hotmail forum.

    Support for Windows Live Hotmail are at http://windowslivehelp.com/product.aspx?productid=1

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

  • I'm tryin to update my computer... I keep getting code and the error 646... I need help I am if confused as to what to do to get these updates... I tried to disable my firewall, but which is not good... Help, please

    I'm tryin to update my computer... I keep getting code and the error 646... I need help I am if confused as to what to do to get these updates... I tried to disable my firewall, but which is not good... Help, please

    Download and install the update/s who is / are relevant to your computer manually.
    IE: http://www.microsoft.com/downloads/en/results.aspx?freetext=974771&displaylang=en&stype=s_basic

    TaurArian [MVP] 2005-2010 - Update Services

  • would it not good to buy a 18-135 mm F3. 5 - 5.6) IS and a 70-300 mm F4-5. 6 IS both for my Canon 70 D?

    would it not good to buy a 18-135 mm F3. 5 - 5.6) IS + a 70-300 mm F4-5. 6 IS both for my Canon 70 D?

    Or a 18-135 mm F3. 5-5, 6) IS + a 55-250 mm F4-5. 6 IS VTS?

    Or with a 70-200? but budget then increases too.

    What do you recommend? i want to have fun soooon photograph animals you in Sri Lanka. Later, I would choose a macro to take the picture of bugs when I bike, trails and also the telescopic should I choose.

    STM 18-135 and 55-250 STM would create a nice kit the 70 d. STM 18-55 and 55-250 STM work as well but would need to change lenses more often.

    I recommend the 55-250mm IS STM on the 55-250mm IS or IS II because it is stronger and has an element before anti-rotation. This also applies to the versions of 18-55.

    I would not recommend the70 - 300mm IS because it is an older design with Micro-USM autofocus and a rotating front element, which can be frustrating when you use polarizing filter.  The 55-250mm IS STM is sharper than the 70-300mm autofocus STM is faster and quieter than the AF used in the 70-300mm

    If you can afford it, the 70-200mm L or 70-300mm L lenses are even better.

  • I have professional window XP and I said that my product key is not good.

    original title: I have window XP Professional

    And it keeps telling me that I can't use my product key its not good. Please I need help

    the code is * removed product key * I just got this new of ebay thanks

    If it was in the shrink wrap, it could be good, contact Microsoft through the activation of the phone.  If this isn't in the shrink wrap, I agree with Ron of Canada.

  • What is a simple way to get the answers to the questions? not good at all this stuff and post the answer.

    asked about windows fax and picture viewer.  had 2 responses, but can not find how to see them.  am not good at all this back.

    asked about windows fax and picture viewer.  had 2 responses, but can not find how to see them.  am not good at all this back.

    When someone posts a response to a question you asked, you should get an email notification.  Click on the link in the notification email and your browser should go directly to your question and its answer.

    You can also connect to Microsoft Answers (http://answers.microsoft.com/en-us) and click on your username in the upper right, and then click on 'My issues'.

    Unfortunately, "all this back" is the only way to get help on the Internet.  Until feel you more comfortable with this process, I suggest that you look at your community resources.  Often, your local public library will help computer available, and if not, they will more than likely be able to go to a place that does.

    If you need repair service, I suggest that you go not to a type of place BigBoxStore or geeksquad, but look for a local computer repairer deemed.

Maybe you are looking for

  • HX750 isn't a Gamer 3D

    More disappointed to discover my KDL-46HX750, a 3D TV, is not a TV "approved" for 3D games. The KDL46HX750 IS NOT CAPABLE OF 3D GAMES! Activation software such as Nvidia 3Dplay and others refuse to install from: SONY IS NOT FILE this as a 3D GAMING T

  • HP Envery Phoenix 810: New PC, added my own SSD, how to move Windows?

    Hello Just got this new PC, but it did not come with an SSD, so I added my own. But I can't understand how to get Windows installs it. I want it to become my main boot drive. Delivery to zero/system restore does not give me an option to specify a dri

  • my product key for Home premium vistas of my backup disk does not register? help please

    I just bought a new card mother and tried to re install vista home premium 32-bit my sysytem origianl backup disk, so I could possible go to 64 bits, what has not happened and now I'm having to reinstall everything, however I said that I have to put

  • Using fax and scan

    How can I save a scanned as PDF document?

  • Crypto applied on the loopback interface

    Hello Here's one of our 2811 router config, we applied crypto on the loopback interface, but its does not work. Can you review the cofig and let us know the suggesstion as elsewhere where we can apply crypto map to VPN to work. site #sh run Building