Part of transition or update screen

How to make the background on a transition of field Manager in another image (or read an animation). When I click on a button?

The best way to do it is to start a Thread that will invalidate the screen at regular and fast.  Allied to this have the method paintBackground of your screen "animate" a picture.  This isn't trivial code.  But this article should help.

http://supportforums.BlackBerry.com/T5/Java-development/display-an-animated-GIF/Ta-p/445014

Tags: BlackBerry Developers

Similar Questions

  • The transition to another screen

    Hello world

    I'm trying to implement the transition from the screen, but nothing happens - newly pushed appears momentally, without any transition at all. No errors in the debugger. What I do is:

    LevelCompleteSplashScreen spl = new LevelCompleteSplashScreen();
            TransitionContext tr = new TransitionContext(TransitionContext.TRANSITION_SLIDE);
            tr.setIntAttribute(TransitionContext.ATTR_DURATION, 1000);
            tr.setIntAttribute(TransitionContext.ATTR_DIRECTION, TransitionContext.DIRECTION_RIGHT);
            tr.setIntAttribute(TransitionContext.ATTR_STYLE, TransitionContext.STYLE_PUSH);
    
            Ui.getUiEngineInstance().setTransition(null, spl, UiEngineInstance.TRIGGER_PUSH, tr);
    

    and after some events in my application, I push just the spl. I checked TransitionContext instance, it is not null, but it does not work. How such a simple transition?

    OK, finally I got things market. I guess that the reason was this part:

    UiApplication.getUiApplication().pushScreen(new LevelCompleteSplashScreen());
    

    I misunderstood and did not explicitly created spl. Now, I just replaced this new instance with spl and transition works. Thank you to all who read and spend your time.

  • 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 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.
     
     
  • A screen to close after a transition of the screen

    Hi, I set up a transition of the screen that, once called by navigationClick, load a screen of the main menu. This is done via the following code

    package com.rim.breakoutapp;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.Screen;
    import net.rim.device.api.ui.TransitionContext;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.UiEngineInstance;
    import net.rim.device.api.ui.component.BitmapField;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    public class Loading_Menu extends MainScreen {
        public Loading_Menu()
        {
            VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.NO_VERTICAL_SCROLL|Manager.NO_VERTICAL_SCROLLBAR)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(0x0000A2E8);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
            Bitmap appLogo = Bitmap.getBitmapResource("Breakout_Logo.png");
            BitmapField bmf = new BitmapField(appLogo, BitmapField.FOCUSABLE)
            {
                protected boolean navigationClick(int status, int time)
                {
    
                    Main_Menu newScreen = new Main_Menu();
                    UiEngineInstance engine = Ui.getUiEngineInstance();
                    UiApplication ui = UiApplication.getUiApplication();
    
                    Screen oldScreen = ui.getActiveScreen();
                    TransitionContext transitionContextIn = new TransitionContext(TransitionContext.TRANSITION_FADE);
                    transitionContextIn.setIntAttribute(TransitionContext.ATTR_DURATION, 3000);
    
                    engine.setTransition(null, newScreen, UiEngineInstance.TRIGGER_PUSH, transitionContextIn);
    
                    ui.pushScreen(newScreen);
                    oldScreen.close();
                    return true;
                }   
    
            };
    
            int leftMargin = (Display.getWidth() - bmf.getBitmapWidth()) >> 1;
            int topMargin = (Display.getHeight() - bmf.getBitmapHeight()) >> 1;
            int bottomMargin = ((Display.getHeight() - bmf.getBitmapHeight()) + 1) >> 1;
            bmf.setMargin(topMargin, 0, bottomMargin, leftMargin);
            backgroundManager.add(bmf);
            add(backgroundManager);
        }
    }
    

    I tried to close the screen with the Bitmap image on once the navigationClick was called using the oldScreen.close (); command. After having inserted the code however the transition of the screen stops working and simply loads the next page without fade. Can anyone suggest how to go on the first screen of closure AFTER deletion

    Thank you

    The usually cited way to do is this: Let's say you want invokeLater your declaration of oldScreen.close (). Instead of him, you're going to write something like

    UiApplication.getUiApplication().invokeLater(new Runnable() {
      public void run() {
        oldScreen.close();
      }
    });
    

    To avoid the compliation problems make your final oldScreen variable.

  • 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.

  • 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.

  • Tried to download El Capitan 10.11.6 updating screen is now blank... no control

    Not tempted to download ElCapitan 10.11.6 screen is now empty... no option to restore the left.

    Hello

    Turning your Mac off

    turn on your Mac immediately press & old shift, freeing once you see the Apple logo

    This will start your Mac in Mode safe

    Try safe mode if your Mac does not end commissioning - Apple Support

    Once you can see your desktop, select the Apple logo > about this Mac to check your operating system updated

    Apple highl recommend creating a backup before upgrading your operating system

    Use Time Machine to back up or restore your Mac - Apple Support

  • Update screen 1080 p on Qosmio X 775

    I've seen a few threads around various places on those who have swapped the screen 1600 x 900 in x 775 with a 1080 p version. I was not able to find someone who listed what exact screen they used.

    A guy mentioned that he got a screen for a Dell XPS17 and it worked fine. I have the x 775-q7170 and I love it, except that the screen is terrible. its similar research by a door.

    Someone here who did the Exchange and the list of parts etc?

    Hello

    It seems that your Qosmio X 775 has a HD + TruBrite® LED backlit 17.3 "screen. It supports content 720 p, 16:9 aspect ratio, 1600 x 900.

    To my knowledge, some of the Qosmio X 770 series supports the 17.3 "(FHD) 16:9 display with a resolution of 1920 x 1080 for 3D Vision max."
    The Qosmio X 770-10 G or X 770-107 for example supports such a display. The display is Samsung with the piece LTN173HT02 (or K000123120)

    Maybe this info can help you.

  • Problem with the home after Orange update screens

    I installed the new update of orange yesterday and I noticed that the widgets and other objects on all the home EXCEPT the Center/main screens once empty disappear when I switch from the normal portrait in landscape mode by opening the key board. If I have my finger on the screen would then move either left or right of the Center home screen and all reappears and seems to be back to normal. Until I got close the key board, then it happens again. I tried to restart and it has not made a difference.

    On the plus side, I noticed that the battery life has improved considerably.

    try to delete the icons on your home screen, reboot the phone, and then put back them again.

  • EliteBook 8570p: Elitebook 8570p SKU: update screen A1L15AV PART2

    Hello

    I did a post a few days ago and received some tips very precise and full of hope.

    So where have I wrong...

    I ordered the screen (number 690405-001) from there , but it does not work...?

    First boot of the system (BIOS) screen appears whitened with lime and pixelated - the original screen works very well of course (this is the original image of poor quality below, the new screen was almost unreadable).

    To compound my confusion ofI also tried this HD screen + (that I had to order at the time of posting the thread above) - and the results are the same... whitewashed appearance and very similar to the Panel, FHD pixelation.

    Y at - it something more, that I have to do (how to replace the video cable? (current part number: 35040AB00-GY0-G 690403 - 001)...?  I hate to ask, but... are we SURE this model A1L15AV with an Intel HD 4000 GT2 will support FHD?

    The original HD display is the "LG Display" brand and is part LP156WH4 (TL) (R1) number if that helps... ?

    If need more info - very happy to post!

    Thank you very much!!

    W

    Hello

    I am very happy to say that I'm now running a beautiful full HD, glossy Panel at 1920 x 1080.  The cable worked!

    I bought for £14 on eBay and the editing was a bit tedious (30 minutes) to unscrew a screw bllion and put it back together but it's worth the effort.

    We can ask the question... Why HP would cripple a cell lower spec upgrade screen easily in order to a bad cable? It is not as if the cost of the cable could be important! In fact, it would be easier for HP to just a cable manufacturing...

    Anyway - I hope this helps someone.  Thanks again for the tips of greta from the previous post mentioned above.

    ATB!

  • Update screen hangs at the "step 3 of 3".

    Whow long fact taking the computer to configure the updates - it has been a few hours since the screen said that configuring updates step 3 of 3 100% complete do not turn off your computer

    * Title *.
    the computer was the configuration of updates for an hour or more and the message just - saying configuring updates step 3 3 100% coimplete do not turn off your computer - how much this decision?

    Previous discussions on this error/problem:

    + site: microsoft.com & rn = Windows + Update + Forum http://social.answers.Microsoft.com/Search/en-US/?Query=%22stage%203%20of%203%22&RQ=meta:Search.MSForums.forumid (f713b70a-5915-4a57-af67-a2252a86a8f1)

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for

  • Refresh rate of screen on my Portege M300 stuck on 60 Hz.

    HelloI can only put my refresh rate of 60 Hz on my laptop screen.I look at the screen for a long time less than 75 Hz can give me a headache.I have everything set my refresh rate of screen greater than 75 Hz keeping the resolution about 1024 x 768, p

  • ITunes won't download on external hard drive?

    I recently changed the location of my Itunes library on my mac, on an external hard drive (not stuff I already downloaded, just the new features). Now when I try to download new things, it is said "there was a problem downloading «...»» ", you do not

  • For u400 BIOS versions changelog

    Where is it possible to see the changes in the new versions of BIOS for u400 model?

  • Outlook Express 6 error

    I can't send or receive email.  I'm getting an ing to follow: The connection to the server has failed. Account: "mail.comcast.net', server: 'mail.comcast.net', Protocol: POP3, Port: 110, secure (SSL): no, Socket error: 10061, error number: 0x800CCC0E

  • Windows Vista Home Premium msi solutions Center. required file

    My PC says this file is missing and I can't open the solution Center: users/rayjr/AppData/Local/Temp/7zS2677