Loading screen is not animated, during the operation, but after

Hi all!

Here's my problem: I am display a gif animated using the class presented here.

It is used in a specific class loader that perform an action, while the gif is displayed (the gif is a spinner). Only once the operation is completed, the LoadingScreen came out of the screen.

Here's my class loader:

public class LoadingScreen extends MainScreen {

    /**
     * The action to be processed during the loading.
     */
    Runnable action = null;

    private AnimatedGIFField _image;

    /**
     * Default constructor.
     *
     * @param action the action to manage.
     */
    public LoadingScreen(Runnable action)
    {
        super(FIELD_VCENTER);
        this.setTitle(CommonTools.initTitleBar());
        this.action = action;

        displayAnimation();

        if(this.action != null)
        {
            UiApplication.getUiApplication().invokeLater(this.action);
        }
    }

    /**
     * Display the animation during the loading process.
     */
    private void displayAnimation()
    {
        EncodedImage encImg =
            GIFEncodedImage.getEncodedImageResource("loading.gif");
        GIFEncodedImage img = (GIFEncodedImage) encImg;

        _image = new AnimatedGIFField(img);

        getMainManager().setBackground(BackgroundFactory.createSolidBackground(Color.BLACK));

        LabelField label = new LabelField("Connect..."){
            public void paint(Graphics g)
            {
                g.setColor(Color.WHITE);
                super.paint(g);
                }
        };

        HorizontalFieldManager containerSpin = new HorizontalFieldManager(FIELD_HCENTER);
        HorizontalFieldManager containerLabel = new HorizontalFieldManager(FIELD_HCENTER);
        containerSpin.add(_image);
        containerLabel.add(label);

        containerSpin.setPadding(Display.getHeight()>>2, 0, 0, 0);

        this.add(containerSpin);
        this.add(containerLabel);

        KasualApplication.isLoading = true;
    }
}

The problem is that the gif is not animated, while the action runs. But if I have a popup appears at the end of the action to let the loading screen, I see that the gif is animated. As well as the animation starts when the action is complete.

I think something is wrong in the clock of my son, but I don't see that.

Could you please help me?

Thanks in advance.

It's ok, the solution is described here.

Tags: BlackBerry Developers

Similar Questions

  • The web page freezes several times during the operation, recovers after about 3-20 minutes, freezes again. Also, lately, the screen lights up and sparkles in a pink/purple color

    I use Internet Explorer as my search engine and internet as my default msn.ca. The web page freezes several times during the operation, recovers after about 3-20 minutes, freezes again. Also, lately, the screen lights up and flashes in a pink/purple one color recovers to normal in 30 seconds approximately. I had an attempt of technician paid for help but couldn't. Can anyone help? Thank you

    Go to start / Control Panel / Internet Options / Advanced section then check the top box rendered = software use instead of gpu rendering / apply then OK.

    Restart all open windows ie11.

    For memory, Bing is a search engine ie11 is a browser and msn... is a home page.

    Any other number symbol use Gear and manage add-ons and toolbars and extensions and disable Adobe Shockwave element

  • mouse and screen windows freeze-up during the operating mode normal ok in safe mode

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • re installed the OS, but the problem persists

    Hello

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Clone Stamp does not work during the operation of frequency separation.

    Spacing of the frequencies for the first time by train.  I finished the layer of tone and now works on the texture, but the clone stamp does not work.  I have the linear light value layer and the stamp tool is set to 'active layer '.  The stamp tool is gray in the Middle, as if I were seeing a "high pass sharpening" layer through the center of it.  Tried to save the doc and the reopening, but none here.  Any other ideas?

    -Jeff

    In fact, I restarted Photoshop and it works properly now.  Thanks for the information on how to best to post a question.  I'll remember that next time!

  • BIOS do not jump to the operating system after installed Toshiba USB HDD

    After I start my computer and my new HDD is on the computer crashes in the bios and Windows XP does not start
    Toshiba USB 2.0 ALU 3.5 "

    In the BIOS the USB LEGACY ACTIVE option

    TNX for your reply

    Hello

    Sorry, but your ad is not very accurate, and I know what you mean exactly.

    What cell phone do you have?

    Are you trying to boot from the external HARD disc or what exactly are you trying?

  • I continued to have this message flashing on the screen "ERROR of LOADING of THE OPERATING SYSTEM" after the restart when loading the software Window XP.

    Original title: someone help please?

    Working on my old computer, a pentium 4, card mother GA81PE1000, I continued to have this message flashing on the screen "ERROR of LOADING of THE OPERATING SYSTEM" after the restart when loading the software Window XP. After so many years, working on the construction of computer & repair, it's new to me.

    So I checked the Microsoft Website for answers from people with the same problem in the past and apply their suggestions, nothing works... hard drive replaced, the changed value in the bios, did everything possible, still nothing works, phenomenal for me, please help me find an answer, thank you?

    Hello

    1. have you made changes on the computer before this problem?
    2 - what you want to say that you receive this error message during the installation of Windows XP?

    Check to see if the following is useful.

    Method 1: Disconnect all devices non-essential connected to the computer and restart. Check to see if it boots normally.

    Method 2: You may need to check the settings of the BIOS (Basic Input\Output System). Check if the hard drive is detected. If this is not the case, check the physical connections. Refer to the manual to check the same.

    Warning of the BIOS:

    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    The following article might be useful: "Error loading operating system" Error Message When you restart your computer during installation

  • Loading screen does not accept animated GIFs?

    Hello world.

    My captivate 3 projects use the loading of the company logo.

    The problem: the company logo is animated, and the Captivate 3 loading screen does not seem to allow for an animated loading screen.  A static image of the company logo is displayed instead.  This tends to give the impression that a project of loading froze and it aggrivates customers.  Does anyone know how to display the logo of aniamted together?

    Hello

    Try this if it can help you by adding the Logo of your company.

    Open a small project (100 PX by 100 PX) and follow the Insert > Animation.

    Select the Animated Logo company. The Animation is added on stage.

    For best results you can run a loop of animation (Animation properties, tab Options-animation select loop) - this step is optional

    Edit > Preferences > start and end - uncheck the "loading screen".

    Also follow project > skin and uncheck the 'Playback control' and 'borders '.

    Publish the project to Flash (swf). A little Swf of your Logo is now available.

    In your project, under the loading screen options, select the Swf file created. Now, the loading screen can play Logo of your company.

    -Ashwin

  • "The Bank bank of Baroda" site said during the operation 'Java script disabled', but is enabled in preferences > content > enable java script. Help, please

    I use linux (ubunut 10.04). My operation is not complete, during the transaction, the site of the Bank says 'java script disabled', but in edition > Preferences > content > enable java is marked as a control. So, what's the problem? , But this site is running in Windows XP internet explore.

    URL of affected sites

    https://www.bobibanking.com/BankAwayRetail/%28S%28cyyknx5510ur3d55gfjnfpbt%29%29/Web/L001/retail/JSP/user/RetailSignOn.aspx?RequestId=40497583

    you have the Options JavaScript, JavaScript Debugger, JavaScript Deobfuscator NoScript and installed QuickJava.

    Is it possible that one or several are at the origin of the problem?
    Do you know how to use these points?
    U of tried to turn all these OFF, restart FF, visit the site and see if it works?

  • Satellite P100-324 - GPU overheating due to fan does not work in the operating system

    Hello world.

    While trying to solve the problem of RAM of 4 GB ([this thread | http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=28374&tstart=0]), I meet another weird thing - gpu overheating due to fan does not work in the operating system.

    Now, I restored the XP MCE using the Toshiba Recovery and I was VERY surprised to see that the problem still exists! As soon as loading the system GPU fan stops, and there is only tranquility. The application load is heavy on GPU and reaching 104 results by reducing its GPU and MEMORY clock values and NOT in the activation of the fan.

    The same thing happens in 64-bit gentoo. ACPI can be turned on or off, it is not serious, the GPU fan always dies as soon as the system load. In non-OS environments (bios, program of recovery, etc.) the fan works fine, GPU cooling from time to time.

    This problem occurs in versions of BIOS: 2.40, 4.00, 4.20.

    Any help would be greatly appreciated, since this laptop is my main working tool and I can't let go 14 days (service).

    I saw in your other thread that you have updated the BIOS and you have installed several different OS.

    Fact is that the BIOS v 4.2 package contains BIOS 32-bit and 64-bit OS.
    Your laptop has been preloaded with Win XP MCE 32 bit. Please use the 32-bit BIOS if the original XP MCE running on the laptop.

    Best regards

  • I had (screen attached) error message during the installation of "Silverlight_Developer.exe".

    I had (screen attached) error message during the installation of "Silverlight_Developer.exe". Please do the needful.
    Operating system: Windows XP

    Hello

    I suggest you to send your query forums Microsoft Silverlight to enhance assistance about the Silverlight developer issue.

    http://forums.Silverlight.NET/

     

    http://www.Silverlight.NET/community

  • JTA transaction is not present or the operation is not in Active state

    Hello

    I am trying to execute an asynchronous bpel process. the bpel process has 5 calls to OSB and takes about 100 seconds for completion. The OSB in the BPEL calls take 90 seconds to complete. At the end of the BPEL process, after completion, I get the following error:

    [2010-07-22 01:56:44] BPEL process instance completed "1220007"
    [2010-07-22 01:56:44] There is a system exception during execution of the BPEL instance, the reason is "JTA transaction is not present or the operation is not in Active state. The current JTA transaction is not present or is not in Active state, when processing activity or instance '1 220 007 '. The reason is the performance of this '1220007' for instance 'BPELProcess1' process is supposed to be in a jta transaction, but the transaction is not present or in Active state, please enable debugging application server transaction logs for more information... Please see your administrator about this error. ". Please check the log file of errors for more infromation. Please try to use bpel error handlers to catch errors in your bpel process. If it is an exception system, please report it to your system administrator. Administrator could perform a manual recovery of the last non-idempotent or point of dehydration activity instance.

    We do not want to increase the properties of transaction-timeout in the Transaction Server - manager .xml or the orion-ejb - jar.xml, since we have other projects with synchronous process running on the same server.

    Can someone please suggest a solution to this problem Besides not to increase the transaction time-out?

    It's because our BPEL process took more time allotted for JTA transaction.

    Check transaction timeout in j2ee/config/transaction-manager.xml.

    If you use the idempotent or control point (all that forces of dehydration) before the time specified above, you get the error.

    While BPEL actually continues execution, he cannot commit to store of dehydration after cancellation timeout and forces.

    -Sridhar

  • iCloud backup after iOS 10 - some files were not available during the last backup

    HI - we are a company with about 350 users of iPhone and iPad.  I put this in the iCloud in the community section, but I've seen other users have the same problem in this section, so I thought I would add here.

    In order to stop users add their own e-mail accounts on the iPhone that lock us the device through restrictions - deactivation of the accounts section.  It stops and then access the iTunes settings.  In the test of iOS 10.0.1, we have one of the devices (a 16 GB 5 s, who had been a backup at 7:20 that morning), improved 9.3.2 that went well with no obvious problems, then, after a few days to leave the handset to the function, we have lifted the restriction and the backup on iCloud to find any backup not occurred since the upgrade and a message 'some files were not available during the last. backup"in its place.

    If all our staff upgrade their phones (we gave says not yet) then the backups look like they stop.  It is easy to fix, as a manual backup, will complete the process, but you have to remove the restriction to do this.

    We tested on iPhone 5, 5 s, air iPad iOS 8 to 9.3.5 and all have this problem.

    I have exactly the same problem, 16 GB iPhone 5s as well. I plan on raising at my Genius Bar appointment today.

  • I can't load ios9.3. I get a message that I am not connected to the Internet, but I check and I am connected.

    I can't load ios9.3. I get a message that I am not connected to the Internet, but I check and I am connected.

    Apple pulled 9.3 for some devices due to problems.

    Just wait and try to come back later.

  • Other results: preliminary report does not properly during the first run in a loop

    I have an unusual problem with NI TestStand 4.1. I have a loop For and it contains, I have a call from sequence configured as a test of numerical limit. This test is configured to report additional results. All other results are preconditioned test cases. Here's the unusual part: during the first iteration of the loop, the test passes yet additional results for the parameters of all inputs are reported (output parameters are not presented at the time, but more on this later). Spend all additional this test iterations in the loop For and additional results are not reported.

    Regarding output parameters... If a test fails I'm expecting (input and output parameters) results to report. However when I encounter a failure only the additional results that are output parameters are displayed on the test report. Input parameters are not reported.

    If anyone else has experienced this? My expectation was that all additional results would be declared in case of failure. In addition, in the absence of a failure I expect not to see additional results. Thanks in advance!

    The short answer is that the condition of additional results for input is evaluated before it's called the subsequence, so that it uses the value of the previous iteration Step.Result.Numeric (or by default on the first).

    You can see this described as stage 15 in the following link:

    http://zone.NI.com/reference/en-XX/help/370052P-01/tsfundamentals/infotopics/step_execution/

    Kind regards

  • T610 with Windows Embedded 7 - the system does not license for the operating system image

    Hello community,

    I bought a refurbished computer ThinClient T610 that is running a Windows 7 Embedded English. The label on the package says, that the computer ThinClient is allowed with W7E. When I now run Easy Tools installed on the computer ThinClient hp to create a USB Image with the German language, everything works fine: the image is downloaded from the web and put on the stick.

    But after you start the stick, the installation program tells me: "the system does not license for the operating system image. What I am doing wrong? The BIOS is already the latest.

    Or y at - it another way to transform the operating system in German? There should be an option to download additional languages, but this particual window has no other options. And I have not found any manual way to download other languages.

    Concerning

    Michael

    Sometimes it can be so easy... ;-)

    So here's my solution:

    1. go on the Web for hp Support site

    2. go in the software and driver download

    3. set the language of driver on the language of your choice (in fact: it was the main problem)

    4. download an operating system image

    5. run the configuration tool and copy the image of an operating system on a flash drive

    6. restart the workstation and install the os

    7. take advantage of your computer ThinClient in the language of your choice

    I don't know, why the hp Easy Tools downloaded the image of evil, but with this solution, that I find myself at the same point, as if they did.

Maybe you are looking for

  • R60 with Windows XP - Bluetooth problem

    Hi people I have an R60 and recently upgraded the HD on a 250 MB drive and kept Windows XP Pro using rescue and recovery of Lenovo to make sure that the disks were duplicated as much as possible. I have only one question after the upgrade my Bluetoot

  • Files WMA with Vista for businesses will play is no longer: it's etiquette of drm license yet?

    Hello I use Vista for businesses successfully now for nearly 8 years.  I enjoyed tons of WMA files of the CD on this machine in Windows Media Player. Now, many of them will not play and I get the http://drmlicense.one.microsoft.com/ with Chrome page.

  • Deleted Windows Vista Update wireless network adapter

    I had restore the computer to the old version after update.  Once the update has been made the computer could not see the wireless network card.  Any ideas?

  • selection tool and image sizes

    Hi, my tool of selection size in percentages changed some how, how can I change their return to centimeters and keep this as a fault, also the size of the image documents have also changed to in. how to set them in centimeters and keep them that way

  • A section for the preview in a loop.

    Hellobit of a newbie question (I've been using first for 4 days).I have a transition in my video and I want to be able to preview the transition a few times more, so I want to loop playback. How could I go about this?Basically, I want to be able to w