What is the right time to call the pushScreen()?

Hello

I made a screen that simply indicates "Loading"... "while my app works through its processes. the problem is that the screen never had pushed until after the function when pushScreen() is back. the call looks like this:

function func() {

//I'm hoping the loading screen would be pushed right here....

app.pushScreen(loadingScreen);

//app does its stuff

return;

//but instead the screen is pushed after func() finishes.

}

what I am doing wrong?

Thank you

Edit: I forgot to mention that this function if calling from a menu item, and in fact the menu itself doesn't close until after func() is done. How can I fix it?

Or, a bit simpler:

new Thread() {
    public void run() {
        // do the work here
    }
}.start();

Somewhere in run(), once the work is done, you can call Application.invokeLater (), passing an executable to update the UI with the results. (Alternatively, you can update the user interface of a separate thread by synchronizing on the object returned by Application.getEventLock (), but that is more complicated).

Tags: BlackBerry Developers

Similar Questions

  • What is the best event each time the called component

    I have an application with multiple forms in separate components. I want to fill in this form with the data when it is load based on a datagrid selection. I have the function of the population attached to the event createComplete of the component. But that only triggers when I first call the form element. Next time when I call, the form does not trigger the function such that she has already created previously. Can someone let me know what is the event that I need to call my form fill function?

    If your condition is not very clear, you can use the component updateComplete event. It is distributed whenever a component is updated.

  • What is the "right way" to archive watched as TV shows to save space on my SSD in iTunes 12.3.3.17?

    I 212,92 GB in my iTunes Media folder on my Mac Book Pro with 751,28 GB SSD and I need some SSD back space.  I saved the file whole iTunes on an external drive, and I use a time Machine TB 3.  What is the 'best' way to remove TV shows I have watched but you may want to look again to retrieve the piece on my SSD?  Is it somehow within iTunes to do this, it can easily reload archived videos?  (For example like the original tΘlΘcharger the cloud when I bought it, but now my own sauvegardΘ?) p.s. Sorry, but none of the categories seem right for this issue. LRC

    A few options, I can think. One is to simply copy the media itself on the external drive and remove the entry from the library in iTunes. When you want to use it then "add you" the external file to iTunes that will put a copy on your computer that can be removed again after having watched.

    Another option is to create a separate library for items stored on your disk to archive.  Create a new library by holding down the option key while starting iTunes and tell him to put on the external drive you use for videos.  Drag the items currently there in the folder automatically add to iTunes in the Media folder on the outside.  Toggle the use of the library back if necessary.

    You need to maybe turn off or change automatic downloads so that they are not constantly re-uploaded in your main library.

  • What is the red button... "IHELP" surrounded by blue, green, red and yellow in the bottom right of the browser window all about?

    What is the purpose of the red button... "IHELP" in the lower right corner of the browser window? Is there any purpose? So then what? There is no answer if clicked.

    This has happened

    Each time Firefox opened

    No button does not exist by default. This looks like an extension installed in your Firefox, view/disable tools-> Add-ons, Extensions

  • can I call from sri lanka to the US and what are the rates

    I take my computer with me so I can call usa Sri lanka and what are the rates

    Beachbum wrote:

    I take my computer with me so I can call usa Sri lanka and what are the rates

    With Skype, your location is unimportant. Calls to (or within) the United States wherever you are cost 2.3 cents / minute or part of it.

    You can easily find the information yourself with a little research here:

    http://www.Skype.com/intl/en-us/prices/PAYG-rates/

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    I'm going to assume that you plan to have wireless devices.

    Let's say that the Capsule is your "main" router  If this is the case, then it must be located in the House, so that the distance between the time Capsule is the same for the outside walls of the House.

    Then, on the 'left' side of the House, looking for an airport to midway between the Capsule and time of the outer wall of the House. Do the same thing the 'right' side of the House.

    In other words, each of the two airports that "extend" the wireless signal are located at equal distance from the Capsule of time... but they are in opposite ends of the House.

    If you intend to interconnect all the airports and Time Capsule using a permanent, Ethernet wired... which by far is the 'best' way to put in place a network in terms of performance and reliability... then you can locate one of the devices anywhere you want.

  • I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    Ideas: I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    • Pragrams you have problems with
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

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

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

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

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

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

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

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

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Control Panel - give me my labtop-"Tablet PC settings" is that at the time? What are the parameters?

    Control Panel - give me my labtop-"Tablet PC settings" is that at the time? What are the parameters? Common sense is the garment of the genius work.

    Hello

    Yes some of the Tablet Settings 'could be useful on some laptops to some users." Easier to understand
    This is for all users of Vista to make a special version for users of the tablet.

    If not using a Tablet you can simply ignore them.

    I hope this helps.

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

  • On a 32-bit vista business system, what is the right way to recover from a damaged NTLDR file that prevents the system from booting?

    On a 32-bit vista business system, what is the right way to recover from a damaged NTLDR file that prevents the system from booting?

    Also, is there a powerful device filled, utility like Winternals Windows PE boot, I can download for the resolution of problems like this and others?

    Thank you in advance!

    Have you had a glance at this startup repair disk?

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    See you soon.

    Mick Murphy - Microsoft partner

  • What is the best option to get Email group subscription to CRM Contacts (in time real/as it changes)

    Hello world

    I evaluate me and come up with approaches multiples, but want to ask everybody, what is the best and easiest method to get subscriptions to e-mail to CRM Group since they change, virtually in real time in CRM (SFDC or other).

    I understand internal call/event allows only the global subscription status be synchronized with CRM, my problem is subscription group.

    Would love to hear all of the approaches.

    Thank you

    Amit Pandya

    Hi Amit,

    Others may have another alternative, but what I've done in the past is to create a "Subscriptions" Eloqua field both SFDC and make a multiple selection with the same values as the E-mail groups in Eloqua. Then, when a person subscribes to some groups of Email, in addition to the update of their Email Group subscriptions, I also update the values in the field 'Subscriptions' and then add in the update CRM program so that subscriptions are updated in the master record or Contact SFDC.

    I work with a client who succeeded subscriptions on the side SFDC in an object custom. It's doable as well, but it is a bit tricky when people of the Nations United-subscription of a group. We ended up creating a record for every email of the contact group to subscribe on a custom object with the name of Group of e-mail and a value of 'Yes' in a field called "Customer", and then if the contact came back and unsubscribed from a group they have already subscribed to, we updated account of this group of e-mail on the custom with a value of 'No' object in the field 'Subscriber '. A little more complicated and more difficult to manage and maintain, but it allows more coverage as you can tell for each group of Email when someone is first of all a (rather than having a single field of "Subscriptions" in the main folder or Contact which houses all subscriptions).

    Hope that helps!

    Kim

  • Hello everyone, after correctly installed the creative cloud adobe now I want to update, the program also tells me to do. But the problem is that connection only goes up to 2% and stops, every time freaking. Weeks before. What is the problem? And Yes

    Hello everyone, after correctly installed the creative cloud adobe now I want to update, the program also tells me to do. But the problem is that connection only goes up to 2% and stops, every time freaking. Weeks before. What is the problem? And Yes, there is an internet connection

    Good afternoon

    Thank you for your response. It was the right solution, but I missed something in your response. I had to start several times to download / update. Throw/delete (or the procedure of the description) files don't get past not like you described, but I tried something myself and it worked finally.

    But I have to ask: If this problem continues, of course, that a workaround is available, why is this a problem in the software persists, exist?

    Maybe you can't give answers, but I'm just wondering, well thanks for your help.

    Green eyes greeting

  • Adding more than one host ESX and the upgrade at the same time.  What is the order of preference of the operations here?

    We are budgeting for more licenses and hardware for 2014 and want to do immediately in January.  I am trying to decide what is the best order of operations for adding two vmware hosts additional to our current installation of vsphere and also upgrade our vsphere / esx 4.1 u3 for the latest and best.

    We have 3 Dell PowerEdge R710 running ESX 4.1 U3.  In this vmware cluster, there is a vcenter server 4.1 U3 virtual machine handle this.  The three servers are about 90% memory used so we add 2 additional servers.  Probably the Dell PowerEdge r.620 since we get up 2 in the space of a 710.  Storage is on a san EMC NX4 NFS which will become too but not yet, let's just deal with the vmware part.

    When adding additional r.620 2, should I install ESX 4.1 on them and join them to the existing cluster and THEN pass vcenter and each one esx?  I ask precisely because 90% of use on 3 current servers, I need 2 other servers to support the update operations take place.  They would be able to repel vmotioned vm while each host receives an upgrade at the same time.

    So which is the best way to go about adding of the hosts and the upgrade?  Would I add as 4.1, then they would be available as targets vmotion and so I have room to start the hosts one upgrade at a time?

    If I update vcenter to the latest version, it is comparable backwards and can manage the 4.1 hosts, but also hosts 5.x?  I guess version 5.5 is the last one I would get from VMWare?  It is right of ESXi, then, how is this ESX ESXi 5.5 4.1 upgrade?  How much storage space do I need for ESXi 5.5, as I'm dechatoiement out of these r.620 Dell and need to know what hard drive to put in.

    The steps that you must follow

    -Updated vCenter Server

    -Upgrade of the ESX hosts (because we do a updating of the material we will install 5.5 on our new guests and add them to the cluster and then dismantle our existing)

    -Upgrade VMWare tools

    -Update data warehouses

    ESXi 5.5 has these storage requirements:

    • Installing ESXi 5.5 requires a boot device is at least 1 GB in size. When booting from a local disk or SAN/LUN iSCSI, a 5.2 GB drive is necessary to allow for the creation of the VMFS volume and a scratch 4 GB partition on the boot device. If a smaller drive or logical unit number is used, the installation program attempts to allocate a region scratching on a separate local disk. If a local drive is not found, the scratch partition (/ scratch) is located on the disk virtual ESXi host, linked to the/tmp/scratch. You can reconfigure /scratch to use another drive or logical unit number. For best performance and memory optimization, VMware recommends that you leave no /scratch on the ESXi host ramdisk.
    • To reconfigure / scratch, see Configure the Scratch Partition of vSphere Client vSphere Installation and Installation Guide.
    • Because of the sensitivity of the I/O devices, USB and SD, the installation program does not create a partition scratch on these devices. Therefore, there is no tangible benefits to the use of the great features of USB/SD that ESXi uses only the first 1 GB. When installing on USB or SD, tent Setup devices to allocate a region scratching on a local disk or the data store. If no disk is local or data store, /scratch is placed on the virtual disk. You must reconfigure /scratch to use a persistent data store after the installation.
    • In Auto deploy facilities, Setup attempts to allocate a region scratching on a local disk or the data store. If no local disk or data store is found /scratch is placed on the virtual disk. You must reconfigure /scratch to use a persistent data store after the installation.
    • For environments that start from a San or use Auto Deploy, it is not necessary to assign a separate logical unit number for each ESXi host. You can co-locate areas scrape for several hosts ESXi on a single LUN. The number of hosts assigned to a single LUN must balance the size of the LUN and behavior I/O virtual machines.
  • Every time I try to open my project Premiere Pro at the hearing, it crashes. What is the problem?

    Every time when I want to open my first Audition pro project to work on audio, Premiere Pro crashes.

    What is the problem?

    Thank you

    Maruf

    You should ask Audition CS5.5, CS6 & CC and/or http://forums.adobe.com/community/premiere/content

    If you ask in the Premiere Pro forum, you must add a LOT more information (don't give any more information here, this is the wrong forum)

    -Premiere Pro video Editing information FAQ http://forums.adobe.com/message/4200840

    Exactly what is on the INSIDE of the video you are editing?

    Information about the codec & Format, with 2 links inside for you to read http://forums.adobe.com/thread/1270588

    A report with details of codec your file, use the following programs... A screen capture works well for people to SHOW what you do

    http://forums.adobe.com/thread/592070?tstart=30 for instructions of screenshot

    Free programs to get information on PC/Mac http://mediaarea.net/en/MediaInfo/Download files

    The forum of cloud is not on the use of individual programs

    The forum of cloud is on the cloud as a delivery & installation process

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it says all communities) to open the drop-down list and scroll

  • What is the right way of javadoc a variable-length argument list

    What is the right way of javadoc a variable-length argument list?

    Let's say I have the following function:
    public void foo(Integer... intArray){
    //...
    }
    I'm not sure how I would want doc this, well, is there something special, I want to point out?

    Thank you for your time,
    Brandon

    Identical to another argument. Name it and say what's the point.

  • Is this the right time for an improvement of the system?

    Having finally started using the installation of first Pro CS5 that has mainly been used for the better part of the year, I find that my three year old system is need of an upgrade.  It works well enough for the edition, but takes an age to make anything.

    The current system of NY is:

    Q9550

    8 GB DDR2

    2 GB HD4850 (I had with my previous card nVidea drivers problems)

    300 Gb 10 k rpm WD Velociraptor (OS and program files)

    150 GB 7 k 4 RPM Velociraptor (stripes only)

    2 x WD black 1 TB internal

    2 x WD 1 TB external USB3 (I like these.)  They are about as fast as my internal drives)

    Gigabyte power 650W

    Windows 7 Home Premium 64 bit (OEM version) that replaced Win XP 32 bit with only 4 GB of DDR2 and made a lot of difference with Photoshop.

    I think similar to

    I7 2600 K

    Gigabyte Z68XP-UD3-iSSD (with the 20 GB SSD on the map)

    GTX470

    24 GB of DDR3 memory

    Windows Professional (to access the 24 GB of RAM)

    I hope to keep my current box and the PSU.

    Issues related to the:

    (1) would it be a good idea to get a second 300 Gb 10 k rpm Velociraptor and Raid 0 them?   I think it would give me useful capacity and speed for the C: drive, and I wouldn't have to wait for my data drives to wake up.

    (2) the person performing the upgrade tells me that he has much spent with this time - especially with AMD processors.  Intel only resemble revise the i7 to a 2700K with an another 100 Hz which looks stupid with the 2600 k being so easy to OC.  Is it worth of waiting?  I know that advises the usual for this kind of question is there is always something to come along, then get on and enjoy what's available now.

    Thank you very much

    Of course, now is not the right time to upgrade, with the new Intel processors and appropriate motherboards that will be released next month?  I know that he will remove the 4 sticks of memory - limit I've seen pictures of motherboards with 8 memory slots.  Will be also lifted the restriction on the PCI express lanes.  As they must be passionate oriented, there are 6 core processors, and I hope there will be Asus cards without the integrated Intel graphics card.  Rumor has it that would however be much gain in speed.

    I'm in the same position as the OP - a system of 3 years, but with a slightly more powerful processor.  Dear as I would have liked to pass earlier this year, I have steeled myself to wait until February when I return from my winter migration.  Here, problems of teeth with the new processors and motherboards must be known.

Maybe you are looking for