Example of simple background thread and question - please help

I have finally updated a list via a web services call field without blocking the loading of a screen.

I want to the loading screen, put a "Please wait" in a field, and then replace the listfield by the vector of calling web services.

I wrote the simple example below just to see if I have the basics, and I guess that I don't have.

My label never changes to 'done '.

I'm sure it's something Liberty fabrics I have left.

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.MainScreen;

public class HomeScreen extends MainScreen
{
    LabelField lf;
    private Runnable runnable;

    public HomeScreen()
    {
        lf = new LabelField("Begin");

        runnable = new Runnable() {
            public void run()
            {
                lf.setText(test());
            }
        };

        this.add(lf);
        UiApplication.getApplication().invokeLater(runnable);
    }

    String test()
    {
        try {
            UiApplication.getUiApplication().wait(1000);
        } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return "Finished";
    }
}

No, an executable is retired after his execution.

Tags: BlackBerry Developers

Similar Questions

  • My ID apple has been disabled and I can't restore it because I forgot my security question, please help

    My ID apple has been disabled and I can't restore it because I forgot my security question, please help

    I can't update my iphone because it will need for my apple for activation ID. Please help me.

    Contact Apple for assistance with the security of the Apple ID - Apple Support accounts

  • I have a dell computer, it has axtra D drive for drive & utilities I have mistakanly loaded two times I remove and reinstall please help / ps its low memory, see the

    I have a dell computer, it has axtra D drive for drive & utilities I have mistakanly loaded two times I remove and reinstall please help / ps its low memory, see the

    Hello


    (1) what exactly are you trying to delete?
    (2) what exactly you are trying to re - install?
    (3) exactly where do you get this memory low message?
     
    The reader might be for backup and could have copied data on the same, thanks to which it shows a low space.

    You can contact Dell technical support for assistance by following this link:
    http://support.Dell.com/
    Hope this information is useful.
  • Have inadvertently made my banks logo my background on my table, please help, not found the answer anywhere.

    Have inadvertently made my banks logo my background on my table, please help, not found the answer anywhere.

    Hello

    See if this helps you:

    "Change your desktop background (wallpaper).

    http://Windows.Microsoft.com/en-us/Windows/change-desktop-background-wallpaper#1TC=Windows-7

    See you soon.

  • Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.

    Get error 207 trying to download creative Cloud and someone please help with this problem, thanks in advance please.

    Please refer to

    Error 207 to "install Adobe".

  • DELL INSPIRON N4010 WEBCAM QUESTIONS: PLEASE HELP... DELL CUSTOMER... AND ANYONE WHO HAS KNOWLEDGE REGARDING MY PROBLEMS...

    I have a Dell Inspiron N4010. Configuration: 1st generation i5 processor with windows 7 home basic 64-bit.

    3 months after the purchase of my laptop, I have updated my Dell webcam central through the applications update service... Shortly after the update, my integrated webcam has started to show problems.

    DESCRIPTION OF THE PROBLEM:

    Shortly after the update of my installed factory Dell webcam central, my integrated webcam has begun to show the problem. webcam was able to start with any application such as Skype or dell central webcam himself. Instead, webcam LED flashes for flicker of a second, and then goes away without any streaming video.  Trying to open it, an error message is displayed: "your webcam can be used by another application. Close the application to launch streaming video".» Initially, the problem was temporary, that is occasionally the webcam began video streaming without any problem, but as the time passed, webcam stopped working almost completely.

    TRIED SOLUTIONS:

    I tried all the solutions mentioned below:

    • I uninstalled the Dell webcam software and reinstalled with the version installed in the factory, supplied on CD with laptop. Uninstalled the webcam via the Device Manager and reinstalled, but without success.
    • I heard that there is a conflict between the Dell face recognition software and dell webcam central. So, I uninstalled the dell face recognition software. After that, the webcam worked for a few days, and there still rebooted problem.
    • I went through various forums online, dell community, customer service, etc. and everything suggested tried but without success. I heard several times that this is not a hardware fault but driver error. Even in a few forums, its says that Creative Technology Limited have not been able to supply webcam drivers compatible with windows 7 64-bit.
    • I even did factory restore my laptop twice, but could not do my webcam works.
    • Then, I decided to format my system and installed windows7 again with the disc that came with my laptop. During this process, I have kept the recovery drive and the untouched OEM disk untouched. I have reinstalled all the drivers in such order as advised by Dell. Despite puts everything in order, I couldn't do my built-in webcam work. More... now I can't even access the Dell factory restore option despite the fact that my recovery disk is intact and it is to have all the files into it!
    • I tried the utility dell online Diagnostics. He could not detect any error webcam!
    • Few days back, I used the dell startup screen diagnostic utility and scanned the built-in webcam to find errors, and my webcam failed in all tests! Here are the screenshots of the tests:

    I GUESS I GAVE ENOUGH INFORMATION THAT CAN HELP TO DIAGNOSE THE PROBLEM WITH MY DELL INTEGRATED WEBCAM... I ASKED DELL CUSTOMER SERVICE TO HELP ME SOLVE MY PROBLEM OF WEBCAM... AND ALSO THE FACTORY RESTORE INACCESSIBILITY PROBLEM... PLEASE HELP ME...

    AFTER AN ENTIRE WEEK OF UNINSTALLING - REINSTALLING VARIOUS DRIVERS & SOFTWARE FOUND IN THESE FORUMS, SUGGESTIONS INCLUDING REINSTALLING WINDOWS FROM DELL DATA SECURE BACKUP.  THIS IS WHAT I LEARNED.

    My problem was. No supported webcam not connected when I ran dell webcam central. No program could access the webcam. Device Manager showed SPECIFIC DEVICE. Camera suddenly stopped working! I had a little more hair when this problem started.

    I have Inspiron N4010 windows 7 Home premium. Are the drivers for the webcam in windows 7, there is no separate drivers available anywhere. with the exception of some XPS models.

    A post in these forums suggests to abolish the plastic around the display bezel. It's simple. Just carefully go around and remove. It is clipped without screws on my system. This gives access to the webcam hardware. I got dell webcam central on-board. (showing no supported webcam connected!). Gently, I tried to disconnect the connector of the webcam. My intention was to disconnect and reconnect. I barely touched and the fire came and windows immediately started to install device drivers. A beep and an icon in the notification bar popped up. A few minutes, I saw my beautiful mug on the screen to my absolute delight.

    Guys, if you have a problem where Device Manager does not recognize your webcam for most probably, this is a hardware problem. The small rectangular plate on which is mounted the webcam is not properly secured by DEll. It is a DESIGN PROBLEM. The Board is located in place on two small round plastic holders without any screws. It can move easily. The bezel plastic when it is installed itself that holds it in place, but not very effective. When you open and close the lid of the screen, especially if you are taking in the middle where the camera you finally loose connector. That's why some messages will tell you what they camera has stopped working suddenly and then started working by himself all of a sudden. When I put the bezel plastic, it snaps into place, I was able to move the camera, and it stopped working again. A little gentle jiggle got running again and its been since.

    It does not matter what version of central webcam you have in windows 7. It runs on windows Vista service pack 2 compatibility mode. (Find WEBCAMDELL2. EXE file under programs x 86-dellwebcam-dellwebcam Central-dell webcam central. Right-click on the file name. Select Properties. Select the Compatibility tab and run this program in compatibility select windows vista service pack 2).

    If in your case even though there might be a software problem. always try this simple 2 minute solution b4 safe spending frustrating days find the drivers and software. Hope this post helps someone. May work on other systems too! Good luck! and thank you to the guy who led me down this path and misery!

  • simple variable problem and question preloader

    I am new to AS3 and have a problem with the following code:

    Stop();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var homeText:URLLoader = new URLLoader();
    var slideLoader:Loader = new Loader();
    var sprContainer1:Sprite;
    var projectPath:String;

    LOADING XML

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);

    xmlLoader.load (new URLRequest("XML/main.xml"));

    function LoadXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    ParseCategories (xmlData);
    }

    PARSE XML
    function ParseCategories(projectInput:XML):void {}
    This. Title.Text = projectInput.category.project[0].@name;
    projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
    trace (projectPath);

    }

    LOAD THE TEXT FILE

    homeText.addEventListener (Event.COMPLETE, onLoaded);
    homeText.load (new URLRequest (projectPath + "/ text.txt"));

    function onLoaded(e:Event):void {}
    this.homeTxt.text = e.target.data;
    }

    IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE

    sprContainer1 = new Sprite();
    homeImg.addChild (slideLoader);
    slideLoader.load (new URLRequest (projectPath + "/ image2.jpg")); < < CURENTLY LOADING AN IMAGE

    The above code shows how to load an XML file that contains the path to the text and image files, I am able to trace the path correctly in the service of ANALYSIS above, but I'm not able to recover the variable (or he also traces) in the TEXT section of the LOAD, please help.

    As I continue to code, I would also like to dynamically load images multiples (in the section LOAD IMAGES) using the projectPath and iterate through each image appearing in an XML file. I'm still not at this time, but my question is how to create a preloader/progressbar that overall progress is displayed for all URL requests (the text file and several images contained in the XML file). Thank you immensely.

    :

    Stop();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var homeText:URLLoader = new URLLoader();
    var slideLoader:Loader = new Loader();
    var sprContainer1:Sprite;
    var projectPath:String;

    LOADING XML

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);
     
    xmlLoader.load (new URLRequest("XML/main.xml"));
     
    function LoadXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    ParseCategories (xmlData);
    }

    PARSE XML
    function ParseCategories(projectInput:XML):void {}
    This. Title.Text = projectInput.category.project[0].@name;
    projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
    trace (ProjectPath);

    useProjectPathF();

    }

    LOAD THE TEXT FILE

    function useProjectPathF() {}

    homeText.addEventListener (Event.COMPLETE, onLoaded);
    homeText.load (new URLRequest (projectPath + "/ text.txt"));

    }

    function onLoaded(e:Event):void {}
    this.homeTxt.text = e.target.data;
    }

    IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE

    sprContainer1 = new Sprite();
    homeImg.addChild (slideLoader);
    slideLoader.load (new URLRequest (projectPath + "/ image2.jpg"));

  • in a loop of constantly trying to install the latest security update. more and more, please help.

    I installed ie8 security was last updated. Now I'm in a 'loop', he says constantly ready to install, I click on install, then I reboot, then he asks the same question again, ready to install, I click Yes then I have to restart, then when windows starts, he asks me once again. Finally I turned automatic updates, so now I have not this propblem. I want to solve this problem, please help me, Greg.

    Help us help you: start by reading this post 'sticky '...

    What information to post in the Windows Update forum
        http://answers.Microsoft.com/thread/1467f44b-ee27-4F7D-98d7-f1c4b35b3395

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    For individuals, free support for security updates (only!) is available by calling the 1-866-234-6020 or 1-800-936-5700 to the United States and Canada or by contacting your local Microsoft subsidiary. For more information about how to contact your local Microsoft subsidiary for security-related support questions updates (only!), visit the following Microsoft International Support Web site: http://support.microsoft.com/common/international.aspx?rdpath=4

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    (E.g., US & CA) North America customers can also obtain instant access to unlimited no charge by e-mail or chat support for security updates (only!) by visiting the following Microsoft Web site: http://support.microsoft.com/oas/default.aspx?&prid=7552

  • Layer Mask question, please help.

    Hello

    My layer mask does not work, do not know what is happening. I use 4 CS. I want to use the blend effect so I put the photos on a white background. I click on the layer mask on each photo, select the tool brush on the picture but does not work, is either appear black or white when I use the brush paint on it. So not bad, the foreground color should be gray & white based on layer mask, but it appears black & white instead. Please see the screenshot below. Please help, thanks

    Untitled-2.jpg

    Hi, I'm going to try explain your problem.

    In your posted example we see that you have three layers in the layers panel.

    On each layer, we can see, on the left side, there is the thumbnail of the layer, it is a display of the actual image of your layer, then a thumbnail of the layer mask (the white rectangle on the right side).

    A layer mask works as follows: you tell Photoshop to show or hide the actual parts (pixels) of the layer with the grayscale values. Indicates a white pixel on the layer masks Photoshop to display the area of the image with a (non-transparent) full opacity, while tells a black pixel on the Photoshop layer mask to hide the layer completely (0% opacity.) Gray values will therefore partially show the image data.

    But you paint on the document, and you must specify Photoshop if you want to paint on the image (what you did in your example, and you don't want to) or if you want to paint on the layer mask (what you want to do). This indication is called targeting. It is simply done by clicking on the thumbnail of the layer or the layer of your layer mask thumbnail. (By clicking on different areas of a layer in the palette layers are different orders, you give to the program). For example, if you want to move the layer that you hide to another, in order to paint on his mask, sure to click on the layer of the other layer mask thumbnail in the layers panel.

    In Photoshop CS5.5 and earlier versions, you'll see that a layer or its mask is targeted because there will be three contours around her: a black, a white and a black once again, as the actual layer data in the highlight 0928 your image layer. You should see these three contours around the layer mask to paint over it.

    CS6 the target indicator is different, look in my image, we can see that the layer mask is targeted with white corners: I then have the part of the black layer mask by targeting the layer mask in the layer panel and then paint on the image where I want to hide the layer.

    If you want to change the layer (photos, in your case), just click on the thumbnail, and you're ready to go!

    I hope this helps.

    See these help documents: laquerbe Basics: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-78e3a.h tml

    Layer masks: http://helpx.adobe.com/photoshop/using/masking-layers.html

    Some the search results for "Masks fundamental layer" in Photoshop help: http://community.adobe.com/help/search.html?q=layer+mask+basics&x=0&y=0&lbl=photoshop_prod uct_adobelr & hl = en_US & lr = en_US & auto = 0 & area = 0

    (It is one of the best ways to search for files of tutorials or help)

    Stone

  • I bought the iPhone 6 s more each time that iam going to install apps from the App Store a circle will appear and again, it goes back to get the button, there is no problem with my ID Apple and Internet, please help me... I have installed an app

    I bought an iphone 6 s more but every time that iam going to install applications from the App Store and press the get a circle will appear and again it goes back to get butto, no problem with my internet and Apple ID, I have not yet even insta an app from thtee opening days, please help me.

    Yet one thing I can change the color of my iPhone after unpacking it?

    You have 14 days to return a phone from Apple after the purchase - which should answer your question of color

    As for not being able to download apps - you're in a good WiFi zone and can you browse the internet on a web browser or send / receive emails?

    Also check restrictions - general - settings to make sure that the download of applications is not limited

  • Touch pad questions, please help.

    Laptop HP Pavilion

    Model: 15-n096sa

    Product: F4T58EA #ABU

    OS: Windows 8.1 Home Premium X 64

    I installed Windows 8.1 Home Premium X 64 on my laptop last week, he had originally version 8 is installed when I bought a month ago. Since the upgrade of the OS of my touchpad is no longer allows me to scroll with two fingers or enlarge the pages, use the right click function by tapping with two fingers & also bring up the options in a Sling. All I can do now is to move the pointer and click or double-click with the pad.

    Can someone please help me solve this problem because it drives me crazy?

    Thanks in advance.

    Hello EnergySyndicate,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I understand that you are having problems with certain features of the touch pad doesn't work does not correctly. I think it's a question of settings. I'm you provide a HP support document: use and troubleshooting of the TouchPad and ClickPad (Windows 8) that will guide you in how to adjust settings and ensure that the common gestures of the Touchpad is correctly configured.

    I think that this will solve your problem of Touchpad and allow you to go back to listening to your computer. Thanks for posting on the HP Forums. Have a great day!

  • Facial recognition technology Optimus for T410 questions - please help

    Hi guys, I bought a T410 with NVS 310 graphics card and built-in webcam. Although the battery 9 cells works really well, I always like to save more power using the integrated graphics card Intel in light load. It's supposed to be done using NVIDIA Optimus but I can't ' find it anywhere or how to activate it. Some have said depends on pilots and I did not try that again. Please help for a long time.

    The next question is the software of face recognition, as my friend's Asus laptop has Smartlogon using face. I really enjoy doing on my T but I searched a lot of places and can't find it. I knew he had formerly VeriFace which seems to have stopped developing for Thinkpad. If anyone has this software, please give me the link.

    And once I found a problem with a device called Lexmark X 422, windows 7 reports that it may not start (code 10), I try the new driver and still no use. I have disable (uninstall) it can restore the entire system and now I can't find it in device manager to try to fix it again. My question is what is this device and how to correct these problems?

    Thank you, T rocks!

    Hi and welcome to the forum!

    To Optimus, take a look:- http://support.lenovo.com/hk/en/HintsandTips/hints_show_12832190176531.html

    Lexmark X 422 was probably your webcam, there is no need to do anything if the machine works fine now.

    Not sure on the recognition of faces, as far as I know there not this feature for ThinkPad.

    I hope this helps.

  • I use iphone 5 s updated to 9.2, but I can not use the network and call :( Please help me

    I use iphone 5 s updated to 9.2, but I can't use the network and call someone help me please

    What happens when you try to use the network?

  • go mini questions please help!

    When I turn on my HP mini computer her talk me to "enter the current password" and after three trys it says "system error fatal vaulted password control failure" with code "CNU9475MH7" Please help me through this form as soon as POSSIBLE. I need the important information on this computer!

    Try to ally.

    e9lovxq4zx

    3rd letter tiny L.

    4th letter lowercase O.

    7th letter lowercase Q.

    Use this code to go into the BIOS.

    Disable all passwords that are enabled.

    IF demand for CURRENT password using this code.

    REQUEST NEW password just press ENTER.

    If asked to hit just to CHECK password to enter.

    Save and exit.

    REO

    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.

  • WRT150N questions, Please help!

    So I just moved into my new House and set up my internet. I used my router before without any problem so far. So my problem is that I have this linksys router and a motorola 2210 dsl modem AT & T Eh well, if I run the Ethernet directly from the modem to the computer internet works fine. But once I added the router I can not get a connection. With the connected router, I have all green in all areas on the modem and the router "I should be connected by saying" my wireless devices are showing my hense network I should be able to connect to it. But it always says connection failed... At one point, I even had my office that I was connected to 54 Mbps but still my home page would not load. I have no idea whats wrong. The internet is coming through, my wirelss peripheral are picking up that I have a network but I can not connect unless I'm jacked right at the source. Please help me understand this. (and Yes, everything is pluged in the right way)

    AT & T usually configures their Motorola 2210 to the PPPoE connection for you and use the 192.168.1.x subnet.   With its default settings, your WRT150N also tries to use the 192.168.1.x subnet.  But you can't put the same subnet on the Internet (WAN) and the ports LAN of the WRT150N.  It will be, or does not work at all it will not work properly.

    To fix the problem do the following:

    (1) put your entire network.

    (2) disconnect all other devices WRT150N.

    (3) use of an ethernet cable, the son a computer to one of the four ports LAN on the WRT150N.

    (4) turn on the WRT150N and your computer.

    (5) connect to WRT150N to 192.168.1.1

    (6) in the WRT150N, replace the "local IP address" 192.168.2.1

    7) click the 'Save Settings' button and then wait for the screen refresh (3 to 60 seconds).  You will be probably disconnected from the WRT150N.  Don't worry about this.

    Exit 8) your browser and put your entire network

    (9) with an ethernet cable, connect the ethernet port on the Motorola 2210 to the Internet of the WRT150N port.  Leave your computer connected to a LAN of the WRT150N port.

    (10) power of your network.  It should work.

Maybe you are looking for

  • Satellite S50D - A - 10 H - keyboard does not

    I have a Tosh Sat S50d - A - 10 H, and the keyboard has stopped working. I can't type anything in Word, Notepad, or do a search... Research is essential because there is no start menu and have Windows 8.1. Suggestions how I can fix this without doing

  • Driver Vista for Satellite C660 & using the free extended warranty EMEA code

    First of all thank you for taking the time to read this email and possibly to answer me.I encountered some problems when registering my Satellite and Toshiba Satellite A205-S5851 * Satellite C660. First computer bought in the United States, and then

  • How to control NI USB-6509 with Micrsoft Excel Macro?

    Hello I have recently brought NI USB-6509 (96 digital i/o channels) and tested ok with Labview. But I wanted to detect and control the same device in microsoft excel. Can anyone suggest me some solutions to work on excel with this device?

  • HP Pavilion Notebook dx6667cl: what bios is used on HP Pavilion laptop dx6667cl F.58.A or F.59

    Can someone tell me if the Bios F.59 is the correct bios for dx6667cl, p/n GS770UA #ABA?  When I raised my bios # Support HP's watch F.58.A and not F.59.  However, the laptop has F.59 installed, and it seems to work ok but very slow. Is there a diffe

  • Sign of Wi - Public Fi issues

    I have a laptop Compaq Presario V2000 Win XP with SP3 running that uses an external Linksys Wireless-B USB Wi - Fi adapter, model WUSB11v4.  Everything works and I can receive a direct list of Wi - Fi networks available with their signal strengths.