long-term process and using animation

Hello

I want to show an animation until I download xml data.

Once the download is complete, animation showing should stop.

The animation should run only the length of time that takes the data xml downlaod.

Help, please.

Thanks in adavnce.

Hello

Finally, the code below solved my purpose

     // the inner class thread to download updates and synchronize two animations
    private class XMLDownloadingThread extends Thread{

public void run() {
    synchronized (Application.getEventLock()) {

     //add loading(animation 01) manager
         addSpinner(_ESHFManager, _loadingProgressAnimationField);

     //add manager to screen
      add(_ESHFManager);
    //ensure repaint view
    invalidate();

    }// end of syschronized block

    try {
    // doing XML downloading here
    Thread.sleep(15*1000);// just for demo a long running process
    } catch (InterruptedException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
                }

// ready for show animation two
synchronized (Application.getEventLock()) {

//remove loading (Animation 01)
                    _ESHFManager.delete(_loadingProgressAnimationField);

//intantiate second animation

_rotatingLogoProgressAnimationField=new ProgressAnimationField( Bitmap.getBitmapResource( "test/splashscreen_480_360.png" ), 10, Field.FIELD_HCENTER );

//add second animation to manager
    addSpinner(_ESHFManager,  _rotatingLogoProgressAnimationField);

    //repaint view
    invalidate();

    }// end of 2nd synchronized block

            }// end of run method
        }// end of inner class

the constructor in

       // start xml downlaoding of upadates with synchronize to animation
          new XMLDownloadingThread().start();

That's all

Tags: BlackBerry Developers

Similar Questions

  • Long-term process works do not at all

    What has happened recently and there has been any changes made on the server (with the exception of restart the server after finding thereon.).  No process for a long time are now working at all.  The rendering process (short term) seem to work, but if it must go beyond that, it doesn't happen.  And there is no sign that the process never exisited at all. First of all, we have seen what happens when we went to finish the process isolated running on the server.  She did not allow for us to do.  We have attached an image of the error.  Then we tried to run new processes and that's when we found that they are not created.

    This led to think there may be something wrong in the database, the table process was left down or something.  But when we looked at the table was actually there.  We decided to create a new test process that would make a simple form, pre filled with the common name of the users and when the user has clicked done, would route itself back to this user.  After that, he would.  The goal was just to see if we could spend whatever it is.  Needless to say that this test has failed.  The party made worked, but the process never goes beyond.  The end user (in the workspace) gets no indication that something is wrong.  It seems that the process works well.  But in the administration console, you won't see any instance of the process.  The process table is created, but no data in it.

    We then decided to attempt to invoke the process of the work bench.  We received an error when you try to do.  I have attached a picture of this error also.

    Anyone have any ideas?  Any help with this is greatly appreciated.

    invoke_from_workbench_error.JPG

    terminate_process_error.JPG

    If something fails it will generate a stack trace in the newspaper... You can go through the support, at this stage, as there is not much we can do for you here.

    Paul

  • Too much process and use of memory Windows 8.1

    Hello

    I am currently using Windows Enterprise 8.1.

    I'm not running the applications, games or software but I notice about 2.3 GB of RAM memory usage and 88 of running processes.

    Someone told me it is too and its Windows 8.1 it is only 40 of the running processes and about 1.5 GB of RAM.

    Now can you please check which runs under the process?

    (2)

    (3)

    (4)

    AmgedIsmail

    When Windows is installed but nothing added is around 40 process but once you start adding things the number goes up.  ~ 80 process is not uncommon.

    Tell your friend that there is nothing wrong.  You use about 25% of ram so much you and it is simply not a problem.

    I have seen systems with 150 used process and 3 GB of ram and it is bad because it could cause a delay.

    In short if you do not have a problem, you like it, tell us your firend to explain here and I bet that he cannot or will not.

  • How LONG adf Installation and use

    Hi all

    Is it necessary to install the ADF runtime in stand-alone weblogic 10.3.6. ? Why

    Yes, if you deploy the ADF, you must install. It will be run in weblogic ADF

  • Citing long lived process control folder?

    Hello

    I have to build a long term process that begins when the xml data are filed in a folder.

    Once the XML is received, it must be entered in the form and assigned as a task of process management.

    Long-term process should be defined with an endpoint Manager task, but using looked the file to invoke the process it's a control folder...

    How can I set such a process?

    Thank you, Yan

    Hi Yan,

    in fact, the process has no need to have a task manager endpoint. Task Manager endpoint is used only if you want users to start the process from the workspace.

    For your process, use a control folder end point. In the process, the first step is surgery Assing task that uses the xml data you deposited in the watched folder (assuming that the xml is in the correct structure for the form you are using).

    Scott

  • Long-term storage of inkjet all-in-one (F4480)

    Is there a good way to prepare for storing ink jet printers long-term (> 1 year) so that the jets get clogged?

    We have a F4480 deskjet all-in-one that has not been used in several months.  As far as I know it still works fine.  It has been stored in the original box & delivery packaging for 3 months.  We hope it won't be necessary for 1-2 years.  We had 2 former HP hoof to the top after a long period without use.  I said that they should be tested every month or two.  Do you need >

    This model integrates print on ink supplies heads, so in the worst case, you'll just need to replace the cartridges.  I think after a year or two ink supplies will probably dried out or clogged.   When you restore the printer to the service, you may be able to run up to three cycles of cleaning of the Toolbox.  Is there is an impression, but it is scratched or one or more colors are missing, then soak the nozzles of the cartridges down in about 1 "of very hot water for 10 minutes can recover the cartridges.

    The best plan would be to simply use the cartridges before long-term storage and then store the low or empty cartridges in the printer.

    For best results, store the printer with cartridges installed.  Be sure to turn off the printer to its power switch and wait for the cartridges to Park properly before removing the power.  Store the printer in a place cool and away from drafts, pets and other potential hazards.  Make sure that the printer is stored standing in its normal operating position.  Store the printer upside down or sideways or the end can cause problems.

  • Long-term headless app work: QTcpSocket receive do not

    We have an app without long-term head that uses sockets for IPC.

    Headless part contains a QTcpServer, the user interface of the QTcpSocket.

    the code without a head:

    server = new QTcpServer(this);
    bool ok = connect(server, SIGNAL(newConnection()), this, SLOT(onNewConnection()));server->listen(QHostAddress::LocalHost, m_port);
    

    user interface code:

    bool stateOk = connect(clientSocket, SIGNAL(stateChanged(QAbstractSocket::SocketState)), this, SLOT(onStateChanged(QAbstractSocket::SocketState)));
    if (!clientSocket->isOpen()) {
        clientSocket->connectToHost(QHostAddress::LocalHost, m_port);
        bool conOk = connect(clientSocket, SIGNAL(connected()), this, SLOT(connected()));
        bool disconOk = connect(clientSocket, SIGNAL(disconnected()), this, SLOT(disconnected()));
        bool readReadOk = connect(clientSocket, SIGNAL(readyRead()), this, SLOT(commandReceived()));
        bool errorOk = connect(clientSocket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(error(QAbstractSocket::SocketError)));
        Q_ASSERT(errorOk);
        qDebug() << "connected to server socket";
    }
    

    output debug shows headless headless app is running constantly, the signal is properly connected, the socket for the server returns isListening() to true.

    debug output of the user interface shows that all signals are correctly connected, and onStateChanged goes from HostLookupState to ConnectingState and finally to ConnectedState

    At this point, I'd wait the server socket to pull the signal of newConnection, but alas, it isn't.

    I generate and run the xandos example and it works correctly, but it does not long-term use and has the server in the user interface, while the part without head connects.

    I suspect that the app without head doesn't have an event loopand QTcpServer documentation states:

    Although QTcpServer is mostly designed for use with an event loop,it's possible to use it without one.In that case, you must use waitForNewConnection(),which blocks until either a connection is available or a timeout expires.
    

    Now I wonder:

    The long March without head app has an event loop?

    If this is not the case, how best to use the blocking call without disabling the rest of its features? A thread?

    Write that post little got me on the right track already, a problem merging caused the socket to the server must be started before you call the constructor of the Application (which provides the event loop).

    Now the server is running, receive a few orders, then she stops unexpectedly, the fires of the user interface
    QAbstractSocket::RemoteHostClosedError changes the State of ClosingState and UnconnectedState

  • Results of long-term with the web service call process

    I'm starting a long-lived process that dragged out variables using a .net web service call. I would like to be able to get these output variables. I find all of the features in the JobManager service to do this... y at - it another way to do this? I am not above querying the Livecycle database...

    Thank you

    Mike

    It will work only after that the process is 'complete'.. then you need to check the status... .and when that is complete, then you can check the results.

    Paul

  • In the lower left corner it used to show the e-mail verification process, and it now displays an e-mail account. How to back emil prosedd info.

    In the lower left corner it used to show the e-mail verification process, and it now displays an e-mail account. How can I get information about the e-mail return process.

    The add on Adblock Plus is known to cause this problem. Disable this add if you have it and see if things go back to normal.

    If you do not have Adblock Plus, restart with all add ons disabled and see if someone else is at the origin of the problem.

  • Purchase unlocked IphoneSE UK long term use US

    I'll buy a SE IPhone in the United Kingdom while here for an extended stay. Then, I'll need to use it permanently to the United States. I shared between the two places. It's better to buy an IPhone unlocked to the Apple store or it be difficulties using it if purchased elsewhere?  I read GiffGaff unblocked really good prices and reliability. This is the plug on GffGaff

    https://www.giffgaff.com/Apple/Apple-iPhone-se/phone-details#specification

    I know I can get a SIM in the USA, I read any sim card works in an unlocked IPhone. But I'm not clear on what this means in terms of this list on Apple's site. I understand that this means if I want to have a monthly to the United States with a sim card that I need to think in terms of network use with what model number? Why some sites say a sim card work in an unlocked IPhone, but then this Apple lists some suppliers to work with certain numbers of series etc?

    http://www.Apple.com/iPhone/LTE/

    I also read that the first time an iPhone is he used locks on any network you use the first time. Is this true with an unlocked IPhone and that is something that can be switched to the Genius bar in both countries when a local sim card is exchanged. I would be grateful for the latest information on how to smooth the transition between the two countries, and how it would be easy to swap Sim cards when necessary.

    Thank you very much.

    Here's what I know

    Do not buy from Carphone Warehouse as the lock of phones to the first carrier, they are enabled on

    Apple buying at full price always gets you an unlocked phone

    The list on Apple's site lists the suppliers that provide the functionality associated with the phone as iMessage etc. - we have incidents of some posters here being charged for calls for activation as their provider was not an official Apple partner or that they might not use LTE etc.

    The Genius bar will not help with SIM locked (locked carrier) phones - you will have to work with the carrier on that one.

    Maybe some of our colleagues based in the United Kingdom can sound

  • Hi Folk, I need to buy new 2-3 computers for my new office for architecture. Please enlighten me what would be the best long-term investment, while I can't invest as much. Thank you very much and enjoy the coming days of Advent. Kindly, Siamak

    Hello Folk,

    I need to buy new 2-3 computers for my new Office of architecture.

    Please enlighten me what would be the best long-term investment, so that I can not spend as much.

    Thank you very much and enjoy the coming days of Advent.

    Nicely,

    Siamak

    You need to investigate "in person"... Go to the Apple Store (or a "Apple Shop" located in a section of another bank) > click here > https://locate.apple.com/ch/fr/sales/?pt=4&lat=47.3692907&lon=8.5418192 for locations at or near Zurich

  • you want to send data using labVIEW to arduino using write visa and the process and to take action using arduino. A

    I want to send data using labVIEW to arduino using write visa and the process and to take action using arduino. After that, I want to arduino to send out necessary via a serial port to labVIEW which should be read using visa read and store in a chain. While I am able to write or read both individually, I can't do it consecutively. I used advanced read and write vi for checking my code, but nothing is helping. The wrong bed 'time delay before execution. " Please let me know where I can go wrong. Also is it possible to write code for hx711 using labVIEW

    1. you need not "\n" on your orders println().  This command adds an end of line character already in the message.

    2. you get the error because you have a loop around your reading.  After the first reading (well technically, the second because of you add an extra line end character), there is nothing left in the port.  As a result, you will get the timeout.

    3. you should really consider using a Structure of the event.  This way you just don't write and read when you press the Write button and you can also use the structure of the event to make the loop to stop.  I also go up to close the port inside the stop-> value Change event.

  • Requirements/process and how long is the lead-time before my java application for BlackBerry will be certified?

    Hello

    I would like to work on a java application to run on BlackBerry devices.

    Are there policies of certification that I must follow so that my application will be certified and downloaded in the store?

    I'm also curious to know how long certification process normally takes from submission to approval?

    Thanks for any help you can provide.

    Tanoe glance here, giving you the details of how to submit to AppWorld

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/1573156/What_Is_-_Pro...

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

    If I helped you press AS button

  • How to find what processes are running on my computer and use it from memory?

    * Original title: find running processes

    How to find what processes are running on my computer and use it from memory?

    You can press Ctrl-Shift-Escape to see which processes are underway and those who is using memory (and how much they use).  Although the memory usage is not as important as how they use lots of CPU, which is what can make your computer slow if there are too many programs use the CPU at the same time.  For memory, even if she says that he uses a lot, an inactive program ' pages on "memory to the hard disk and it frees room for other programs to use, is not as important as the CPU generally (unless you are very very low on memory).

  • The document has been changed since its creation and use of the extended functionality is no longer available

    I have Adobe Acrobat Reader DC 2015.016.20039 on my system. I filled a form using Foxit Reader. When I tried to open the form with Adobe Acrobat Reader DC I received the error "the document enabled extended in Adobe Acrobat Reader DC features. The document has been changed since its creation and use of the extended functionality is no longer available. Please contact the author for the original version of this document.

    I tried other PDF programs, no problem at the opening of this form.

    Ashampoo_Snap_2016.05.17_02h01m01s_002_.png

    Function "Activation reader" comes from the original shape, and it's essentially a digital signature. It is specific for the free product of Viewer PDF by Adobe (aka Adobe (Acrobat) Reader).

    The problem is that only Adobe products are able to (re) make these documents without breaking the seal of the digital signature.

    So, what happened in your case is the Foxit Viewer broke the seal during the recording of back and what's. Using Acrobat, you can save a copy of the form, and then continue will fill. Otherwise, you will be better off to start over, but stay with viewers Adobe PDF all the time, working with the form, or with a different Viewer, once again all the time you work with the shape.

    BTW, player XI and most recent no. have more need of extended for more rights blocked by previous versions of Reader. This is not enough in this case; only, it would be useful for the sender of the form.

    Update (after rereading of the original message): if it's just for viewing or print the form, you can ignore this message. You can also try to save just, you have a version of player who no longer has the rights extended (at your risk).

    I hope this can help.

Maybe you are looking for

  • Product key Windows T440s sticker

    Hello I intend to reinstallation of Windows 8. Does anyone know where the Windows product key sticker is located on the T440s? I looked under the battery compartment, but it isn't here. Any help would be appreciated.

  • Getting 7 error with the HTTP POST vi method when deplyed ISO crio as executable... urgent!

    Hi all I have an application where I can access the net server point of LabVIEW via the HTTP protocol to send the data. My application works fine when I run it on XP, and also sometimes on cRIO. I'm writing and reading files to store and read data fr

  • How can I find out what operating system I have when there is no original hard drive?

    I recently bought a HP Pavilion tx1000 from my understanding, it's a phone company and the hard drive was removed and destroyed. There are other issues, as there was a black screen, all lights will just not turn on the screen but have sense then fixe

  • Zwei SRW2016 uplinken

    Hello support team, ICH möchte zwei SRW2016 procedures zwei oder drei Ports Ethernet hintereinander schalten um die Netzwerkleistung zwischen den beiden Switch zu pegel. Danke Tirona EDV

  • Cannot reply to emails in Hotmail

    I have two different hotmail accounts and have had the same problem on two of them for the last two days. I can receive and view my emails fine, but when I try to answer one of them (or send a new message) it crashes and a message appears saying that