Constantly update screen

I have a game that I'm writing and I want to make the screen constantly updated. I tried to use a while loop and call invalidate on the screen, but it does not draw anything. I can do if I call the invalidate to a key event to draw. I use the Simulator IDE and storm 4.7. Any help is appreciated.

@RexDoug - probably applicable in this case, but can clarify you your message please.

In the first paragraph, you say that the invalidate() is called with the event Thread because it is part of a key event, but on the second, you say that it should be queued to get in an event Thread process?

Also, I don't think invalidate() has the thread of events - I think I have the code that invokes it directly (for a form) to a background Thread.  In my view, there is no treatment, it initiates just repainted at a later stage.  But that's just my experience and I could be wrong.

Tags: BlackBerry Developers

Similar Questions

  • How can I prevent the annoying "Hooray!" "Your Firefox is updated" screen/tab to appear whenever I start Firefox?

    Whenever I start Firefox the boring "Hooray!" "Your Firefox is updated" screen/tab is displayed. I know that it is up-to-date. How can I stop this?

    Hi STALMIKI,

    You should look at this article on this specific issue and Preferences not savedarticle. It should give you all the information you need!

    If this does not work:

    1. Enter about: config in the address bar
    2. Click I'll be careful, I promise you if prompted
    3. In the filter field, type Startup
    4. Double click on startup.homepage_override_url
    5. Delete the text string, and then click OK
    6. Close Firefox and reopen the window to check that it worked.

    Hope this helps!

  • my media player constantly updated and slowes down all my stuff fn 2 months of frustration please help!

    Help me!!!

    Hi Chad,

    Please take a look in the following thread replied:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-sound/Windows-Media-Player-constantly-updating-media/67ac2992-e76e-408a-90a8-0fa173885a6e

  • configuration constantly updated

    Almost every time I shut down or restart my new laptop (Sony VGN-P21Z with Vista Home Premium SP2) I get a message: "Configuring updates - do not stop your computer." Even when I start or restart. Check with the installed updates, according to me, that no new updates have been installed. The computer seems to be perfectly up-to-date - and stiil going in configuration - and it takes time! I tried a restore, I even did a format and a complete system restore, but nothing helped.

    Hi Geoffrey K.

    Sorry to be back - my problem appeared again. Only now, the "Configuring updates" screen, I get to stop and start stays on for just a few seconds (before it was 5-10 minutes). I'm willing to put up with it as long as it gets no worse...

  • MSU files are constantly updated

    Since may, on a PC with Vista and one with Windows 7, Windows Update is not updated even after 24 hours to research.

    My update agent has the latest version 7.6.7600.256. The necessary dll files have been re-recorded with an appropriate script. Removal of C:\Windows\SoftwareDistribution\Download etc did not help.

    There are various recommendations to install a couple of individuals updated system preparation tool, or manually before running automatic wu again. But on the PC, the msu files are constantly updated .

    How to get out of the trap?

    Finally I did the job.

    1 free up memory extra RAM by temporarily closing Sophos SAVservice

    2 stop wuauserv every time before you begin the next msu file

    3. install manually:

    • Windows6. 0-KB3140410-x 86.msu
    • Windows6. 0-KB3153199-x 86.msu
    • Windows6. 0-KB3161949-x 86.msu
    • Windows6. 0-KB3164033-x 86.msu
    • Windows6. 0-KB3139852-x 86.msu

    4. Subsequently, normal search updates brought upward within 45 minutes.

  • My update screen shows the last control updates has been 14.6.16 to the 08.01 and the update to install has been KB3035583 on 25.5.16 to 23.02.

    * Original title: look for the updates ms7

    My update screen shows the last control updates has been 14.6.16 to the 08.01 and the update to install has been KB3035583 on 25.5.16 to 23.02.  Since 14 June I repeatedly ran checks the updates, but these controls are never successful as never - end research I just saw the "check updates" message, but the check never ends.   Why is this?

    The Windows Update client cannot manage a KB3161664. Download and install it manually in advance. Links provided here:

    http://Wu.krelay.de/en/

    Be sure to not do a search running in background.

    Best regards, VZ

  • BlackBerry Z30 Z30 suspended in the "Additional update" screen, I have a spleen?

    After many hours being pasted on the screen "Software updates", things have finally moved on the "Additional update" screen.  I am connected via Wi - Fi and have not inserted my SIM card.

    He's been stuck here for 3 hours, is this normal or is my phone a dud?

    The wise thing to do would have been to plug and leave it.

    See what others say. I still think that you need the mobile network and the installed SIM. You should leave wifi on as well.

  • Update screen from a Thread.

    Hello

    is it possible to update the current screen of a Thread?

    I tried with a pushScreen but thit causes the termination of the Thread...

    I also tried a second Thread that reads the information in the first Threads

    Output array, but it worked...

    creation of the "screen" with smth like that

    while ThredIsBusy == true{
      //Update Gui
    }
    

    does not work too...

    the Thread takes about 1 Minute, if I want to display information

    on the progress in the graphical interface.

    Any ideas?

    dognose

    well, I was able to produce a solution of 'work '. I don't know if its good or bad, but it works:

    First of all, with beginning of thread, I show the status screen once and start the update screen Thread "wait."

    /*This is the Thread taking a time*/
    GlobalDataStore.AllTracks.start();
    
    /*This is the boolean we use later*/
    GlobalDataStore.ThreadIsRunning = true;
    
    /*Display a instance of "waiting Screen"*/
    Screen waiting = new waitPlayListScreen();
    UiApplication.getUiApplication().pushScreen(waiting);
    
    /*Start the second Thread, that updates the "Waiting Screen"*/
    GlobalDataStore.Waiter.start();
    

    It's Source code, I used for my "screen pending update.

    public void run() {
           /*This is the boolean set on thread start*/       /*While, cause it should stop, when Thread 1 is finished*/       /*Thread 1 sets the boolean flag on false at end*/
           while (GlobalDataStore.ThreadIsRunning == true){            UiApplication.getUiApplication().invokeAndWait(new Runnable(){
                    public void run(){           /*Close "current wait Screen"*/
                        Screen sr = UiApplication.getUiApplication().getActiveScreen();
                        sr.close();
    
             /*And push new one. Information is update by functions that are called             in the constructor of the waitscreen*/
                        UiApplication.getUiApplication().pushScreen(new waitPlayListScreen());
    
                    }});
                try {
                    Thread.sleep(1000);
                }
                catch (InterruptedException ioe) {
                    GlobalDataStore.EventLog.Append("Exception While Thread Sleeping: " + ioe.getMessage()); //log
                }
            }
        }
    
  • My keyboard is missing after update screen.

    My keyboard is missing after update screen. It comes when I do the system restore, but disappears again when I turn on the computer and it will update again.

    11 updates have been installed. I couldn't find 10.

    Adobe Reader XI (11.0.10)
    Update for Microsoft Windows (KB3014406)
    Update of security for Microsoft Windows (KB3013126)
    Hotfix for Microsoft Windows (KB3009736)
    Update of security for Microsoft Windows (KB3008923)
    Update for Microsoft Windows (KB3014394)
    Update for Microsoft Windows (KB2952664)
    Update for Microsoft Windows (KB3006121)
    Update for Microsoft Windows (KB3006625)
    Update for Microsoft Windows (KB3013410)

    Notice that I get:

    How can I get the keyboard screen on back?

    Remove KB3004394 from Windows updates and reboot. It has caused many problems.
     
    Go to the updates of Windows. It should appear in the start menu. All programs, or you can find it in the control panel.
     
    Click view update history and installed updates. In the search bar type in KB3004394. When it shows the update, do a right click on it and uninstall it.
     
    Microsoft has released the update if you do not have to worry about coming back.
     
     
  • Windows 7 media player constantly updated

    Hi, I think this media player 11 is constantly updating of libraries by running wmpnetwk.exe and use up to 50% of the cpu as well slow down everthing. I had to remove all the libraries to stop this. and now using VLC player instead.

    Hello

     

    Method 1:

    Please follow the link below:

    Open the troubleshooter in the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 2 :

    Please follow the link below:

    Optimize Windows 7 for better performance

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    Method 3:

    Try to disable and enable the Windows media player and check if it works.

    ·         To enable and disable Windows Media player.

    1. disable the Windows Media Player.

    A. click on Start then run type appwiz.cpl on OK.

    B. on the left side, click on turn on or OFF windows features.

    C. functions as multimedia uncheck windows MediaPlayer.

    D. click on Yes , then click on OK.

    E. close all programs, restart your computer.

    2. enable the Windows Media Player.

    A. click on Start then run type appwiz.cpl on OK.

    B. on the left side, click on turn on or OFF windows features.

    C. functions as multimedia check windows media player

    D. click on Yes , then click on OK.

    E. close all programs, restart your computer.

  • The Mediam player constantly updated from Windows: unnecessary files, creating unnecessary playlists and double and no way to stop the updates.

    Upgrading to windows 7 and unfortunately found with the latest version of media player. Here is a short list of what I need fixed (because I can't come back until I have decide of windows 7 is just as useless):

    1 player constantly updates whenever the program is opened (not even try to play a song or whatever it is, it starts). This creates files garbage off all, I mean ALL media files in all my shows. the first open I found myself with 2 700 new titles prior to this, all were games or software sound effects. I tried all the options of the user for what this is about updating and stop anything that even resembled an auto-update feature (although nothing seemed really appropriate).

    2. the update also adds auto-playlists, but also of new playlists 'trash' to my normal playlist section who have no related audio files or some effects files above game/software.

    3. it adds not only my multimedia player, but apparently my global media 'profile,' like the first time I went to update my itunes started all these files garbage pulling himself into thinking they were WMA to convert.

    4. the mini player mode needs an option "opacity" so it doesn't go away in circles when I don't have my mouse hovering over him.

    5. attach your download links for skins/visualizations, etc. I used the direct link for something that might not have the opacity of the skin problems regular mini Player and ended up with a file that has frozen on the media player. After using System Restore, I tried another skin on the direct link is a media player and got the same result. I gave a third try (after restoring again) and got the same result. Nice link/beta test...

    Moreover, to use this computer to the direct sound, so I need a little my files, clean, organized, and without all the garbage you are dull upgtade is cramming my complete with hard drive. Thank you...

    Hello bouttokillbill,

    Thank you for visiting the Microsoft answers Site.

    When you start Windows Media Player for the first time, it automatically searches certain default folders in the library music, pictures, videos and recorded TV.  If you add or remove files from these libraries, the Player automatically updates its available media files.

    For more information about adding items to the Windows Media Player library, see the link below:

    Add items to the Windows Media Player library

    To view the folders monitored by Windows Media Player, click on organize: manage libraries in the Windows Media Player menu.

    You can also submit your comments for Windows 7 to the address provided below:

    Windows 7 comments

    I hope this information is useful.

    Thank you, Mary
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • constantly updated media player

    My drive is constantly updated, but nothing new appears, I tried most of the suggestions but nothing helps I have now turned off media player as my PC is so slow, there is no fix soft ware for it yet

    Hello

    Thanks for posting your question in the Microsoft Community.

    I imagine the inconvenience that you are experiencing. I will try to help you in the matter of fixing.

    Please follow the methods and mark the question below:

    Method 1:

     

    Follow the steps mentioned below and check if the problem persists.

    (a) open Windows Media Player, click organize , and then select Options.

    (b) on the library tab, uncheck the box retrieve additional information from the internet.
    (c) close Windows Media Player and the reopen to see the process is faster.

    If this has no effect, do the following:

    (a) open Windows Media Player, click organize , and then select Options.

    (b) on the Player tab, change the automatic updates of once a month.
    (c) close Windows Media Player and the reopen to test.

     

     

    Method 2:

    Step 1:

     

    Follow the steps described in the links below.

     

    Open the troubleshooter in the Windows Media Player settings:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Step 2:

     

    Run the Microsoft Fix It from the link below.

     

    Solve the problems of Windows Media Player video and other media or library:

    http://support.Microsoft.com/mats/windows_media_player_diagnostic/

     

     

    Method 3:

    Step 1:

     

    Follow the steps in the link below.

     

    Start your computer in safe mode:

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    If the problem is resolved, then follow the next step.

    Step 2:

     

    You need to perform a clean boot to prevent any third party conflicting application from interfering with your computer.

    To put the computer in a clean boot state, you must follow the steps in the article mentioned below and check with the question.

     

     

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8:
    http://support.Microsoft.com/kb/929135

    Note: You must follow step 3 of the article mentioned above to recover your computer to a Normal startup after you complete all the steps.

     

     

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

  • My windows 7 MediaPlayer is constantly updating my music & causing problems of duplication. How can I stop this?

    My Media Player from Windows 7 is constantly updated my music. IT will duplicate Albums and add a lot of numbers that don't mean a thing. Cannot sync music to my SUB. Geek Squad says this is normal, but I do not think them. He just started a week after 6 months of use.

    Hello

    Have you tried to add songs to the library and check?

    Method 1: Run the Troubleshooter:

    Open the troubleshooter in the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 2: If the problem persists, then clear the database of Windows Media Player. To do this, follow these steps:

    a. exit Windows Media Player.

    b. for Windows 7: click Start, run, type %LOCALAPPDATA%\Microsoft\Media Player, and then click OK.

    c. Select all files in the folder and then click on Delete on the file menu.

    Note: You don't have to remove the folders that are in this folder.

    d.

    Restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    Method 3: If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. If you run Windows 7, click Start, click Run, type % LOCALAPPDATA%\Microsoft and then click OK.

    c. Select the Media Player folder, and then click on Delete on the file menu.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    For addition al information, see this article:

    Add items to the Windows Media Player library

    http://Windows.Microsoft.com/en-us/Windows7/add-items-to-the-Windows-Media-Player-library

    Hope this information is useful.

  • Windows media player, constantly updated of the c drive

    original title: windows media player, constantly updated on day of c drive but I just added my xbox and I think that this force to start it.

    my windows media player is constantly updated of my c drive, I did the sfc scannow and that said I have some corrupted files and it also sets some but ist is always updatin, I also tried to stop during extraction of information about the options of wmp etc it also did not work. I recently added my xbox to my homegroup, but he now blocked because I thought that was the problem but its still doing and his fill-in to the top of my wmp with all the different files is there anyway I can stop this.

    Hello

    -What do you mean by "constantly updating of drive c by windows media player"? ".
    - Are you referring to Windows Media Player library?
     
    Method 1: Follow the steps mentioned below and check if the problem persists.
    (a) open Windows Media Player, click organize , and then select Options.
    (b) on the library tab, uncheck retrieve additional information from the internet.
    (c) close Windows Media Player and the reopen to see the process is faster.
    If this has no effect, do the following:
    (a) open Windows Media Player, click organize , and then select Options.
    (b) on the Player tab, change the automatic updates in once a month.
    (c) close Windows Media Player and the reopen to test.
    For reference:
    Add/Remove items from the Windows Media Player library
     
    Method 2: Run the Microsoft FIXIT from the link below, and if that helps.
    Solve the problems of Windows Media Player video and other media or library
     
    Hope this information helps.
  • Surface Pro stuck on the update screen

    Surface Pro is stuck on restart after clicking install updates. Scree shows Surface see points encircling me and message says update of your system. It seems to be fine until it reaches 14%, how she does not exceed 14%. I stopped and restarted several times and also tried power and volume button Reset and is always arrives at 14% and then does not go beyond.

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that your pro surface is glued on the update screen.

    I suggest you to refer to the suggestions of Steven_B responded on February 13, 2014 and check if that helps.

    http://answers.Microsoft.com/en-us/surface/Forum/surfpro-surfupdate/surface-Pro-hangs-when-trying-to-install-latest/8678b63d-e8a2-4B66-af2d-389d9e279a28

    You can also refer to the Microsoft Help article below and check if that helps.

    https://www.Microsoft.com/surface/en-us/support/warranty-service-and-recovery/Windows-stops-responding?OS=Windows-10

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

Maybe you are looking for

  • iPod touch 5th

    My cousin give me her iPod 5th when he moved to Germany.He give me the phone with his apple account. When I reset the ipod I get a login screen and it say I need to the synchronized VOD account. I can't talk to my cousin... And I think that it is not

  • I had to download an application my son not mine is coming how can I remove this?

    When I want to download an app ID son arrives so not knowing his password I can't back down all the apps sound seems to replace my ID how to remove his ACC on my iPad?

  • Inability to enter the sim pin after update 5.1 on z3

    After receiving the lollipop update 5.1 my z3 (protection of sim on) is no longer gives me the opportunity to go my PIN to power up and go to the Security section menu sim lock does not work either because the sim card is locked and an overlay covers

  • Audio books play in the right order

    I have a laptop with Windows 7, but if I try to read an audio book, he will play, but in the wrong order.  The only way I can listen to it is to highlight every piece he plays, but it's not ideal.  They play fine on a regular CD player. Any ideas?

  • Where the default enforcement strategies? WAAS CMS 5.3.3

    I implement a Manager from Central VWAAS, version 5.3.3. The old CMS runs on a WAE-612, running version 4.4.7. the Old CM, depending on the volume-> AllWAASGroup groups, there were canned application profiles for all kinds of traffic. Apple-iChat, BM