How can I update the view without freezing?

Hi all

I am trying to load more items in a list, as does the Twitter app

When I want to load more items, I have done the following:

  • I shows Loader
  • I do the networking activity
  • I'm updating the view

The problem is that the application UI freezes during the stage of "update view" (for 2 or 3 seconds).

Because I'm not in the main thead element I update the gwendoline in the following way:

UiApplication.getUiApplication().invokeLater(new Runnable() {
            public void run() {
                synchronized (UiApplication.getEventLock()) {
                    while (MyList.hasMoreElements()) {
                         ...
                          ScrollableList.add(item);
                          ...
                    }
                     hideLoader();
                }
            }
        });

Is it possible to update the view without fix it the interface?

Thanks to you all.

Welcome to the support forum.

invokelater enough, you don't have to synchronize the lock of the event.

I don't know what is ScrollableList, but if you want to use a ListField, for example, you can add all the entries at a time.
Even in other cases, as a normal Manager, addAll could be much better performance.

Tags: BlackBerry Developers

Similar Questions

  • How can I update the BIOS without using a CD?

    Hello!

    I recently decided to update my RAM from 2 GB to 4 GB. After installation, I started my computer to find that it would not recognize the new memory. After doing some troubleshooting, I decided to try to update the BIOS, like the 2010 version. I have downloaded the update to the BIOS boot CD implementation of lenovo, burned a disk and restarts, I found that the boot order has no CD contained thereon. Here's the catch: I do not have the supervisor password. It is a mobile phone in hand, and I tried to find the password nothing is done. It's the current boot order: USB key, hard drive.

    My question is, can I create a BIOS update disk using a USB key, or update the BIOS of another way?

    I understand that it is impossible to recover the supervisor password without having served (that I prefer to not do, even if I have to return my Crucial RAM)

    My system features:

    ThinkPad L512

    BIOS version: 1.04

    BIOS date: 2010-3-26

    Controller of Embeded Version: 1.01

    Windows 7 32 bit

    Thanks for your help.

    Welcome to the forum!

    Two things here:

    (a) If you run the system update, it should offer the latest BIOS for your machine as well. I never did on a protected device, so it may or may not work, but perhaps worth it.

    (b) I doubt the ability of the system to recognize the new RAM has something to do with the BIOS. Much older than your ThinkPads will take place 4-8 GB of RAM with an old BIOS, older than your machine initially.

    Good luck.

  • How can I update the BIOS without windows on V3 - 372

    I bought an ACER V3-372-57CW and refuses the computer at startup (the Green ACER splash screen at boot EFI appear same) when my Tablet WACOM Intuos 4 (if not fully functional) is inserted any USB port. Customer service Acer not recognize wanted to nor register the question so my last hope is that a BIOS update will solve the problem.

    I'm used to the manufacturers supplying utilities executable flash BACK running under FreeDOS etc but for the Acer V3 - 372, I can only find an executable for Windows 10. Of course, uninstalling the entire system just for the update of the BIOS is not a viable option.

    Is it possible to get either one executable for the update of the BIOS BACK or something that could be used from within Linux (with EFI)?

    Thank you

    Masquilier,

    At the present time, I have installed on my Windows computer.  If someone were to tell me that I needed to install another operating system to update the BIOS, I don't think it was a big deal.  I would like to...

    1. create a system with the Windows image backup

    2 clean the clean disk with 'diskpart '.

    3. install any OS they told me that I had to install.

    4. update of the BIOS

    5. after updating the BIOS, I would just wipe the drive with diskpart and restore my Windows system image.

    6. it would take me less than 45 minutes to accomplish steps 1 through 5.  Probably about 30 minutes to be honest.

    Use my logic.  Except that I'm not a Linux expert and don't know how to do what I tell you with Linux.  Just google it.  I see that some people use clonezilla, but I don't know there is a command to do the same.

    https://help.Ubuntu.com/community/DriveImaging

    http://AskUbuntu.com/questions/106943/back-up-the-whole-Ubuntu-system-or-system-image-creation

    http://AskUbuntu.com/questions/19901/how-to-make-a-disk-image-and-restore-from-it-later

    Check with the Ubuntu forum and tell them what you need to do and I'm sure it's possible.

    Important note: own Diskpart is priceless, if you n-front-rear of switching between the old modes and UEFI... or deleting partitions... or clean installation of an OS.  However, make sure that you don't accidentally wipe the bad drive (drive).  Be careful.  There is step-overs.

    Tip: you can get Vanilla iso free Windows from the links below... If you forgot to create a USB factory default your Acer Windows OEM recovery disk.

    https://www.Microsoft.com/en-us/software-download/Windows10

    https://www.heidoc.NET/Joomla/

    And create a media installation with rufus.

    https://Rufus.AKEO.IE/

    Tip2: the link below has some tips and tricks for cleaning 8.1 of Windows Installer or Windows 10.

    https://community.Acer.com/T5/V-and-VN-series-laptops/Acer-Aspire-v3-772-Windows-8-1-clean-install/t...

    Tip3: always back up your personal files before you try everything before.

  • How can I update the UI without encountering a ' Application is not responding do not; completed process '?

    I'm trying to populate a table on the screen, and when the user clicks a Labelfield (20 lines are populated by click).

    When the user clicks the labelfield, following takes place:

    (1) a data segment is read from the SQLite database in a background thread.

    (2) data are then filled in the existing table on the screen (by adding more fields to the Table Layout Manager) in the invokeLater() method.

    I am currently facing a problem of ' Application is not responding do not; process is completed ' when I continue to load more items to say about 3 to 4 times (i.e. After about 60 to 80 lines are met).

    I fear that this could be caused by the user interface thread get resisted for a long time, while the population takes place. Is there another way to update the user interface, so that the application runs smoothly?

    I'd appreciate any help that I had with this problem for some time.

    You must use another thread to query the database and then creating and filling in the fields. After the creation of fields use the Manager.addAll () method to add an array of fields (in invokeLater() body of course).

  • I can't display image icons when working with my photo folder. How can I see the photos without having to click on them in preview mode?

    I can't display image icons when working with my photo folder. How can I see the photos without having to click on them in preview mode?

    -It used to work and for some reason, now it does not work

    Greetings, d_chiuch1104,

    There is one thing that I know that you need to check that COULD be your problem.  Open Control Panel (in Classic view) and click Folder Options (or, in Control Panel, click on appearance and personalization and then Folder Options).

    Open the view tab and make sure that "Always show icons, never thumbnails" is NOT checked.

    It would be good to hear from you as to whether that was the problem!

    GL - Bob

  • Satellite L300D - 24 d how can I update the graphics driver?

    Hello

    How can I update the driver for my ATI Radeon 3100 graphics card. (Win Vista 32 bit)
    I download and installed the new ATI Catalyst worms. 10.12.

    If I change my graphics card options, there is always the old driver installed... Worms. 22.04.08 8.479.0.0
    Also, it is not possible to change the settings for graphic resolution higher than 1280 X 800 Pix.

    Thanks for the help,

    Fun1975

    First, you must use the page to Toshiba display driver.
    The use of other drivers can lead to highest GPU temperature and cause overheating.

    But if you want to use other drivers, you can do so at you own risk.
    In order to install another driver, go to Device Manager, mark the graphics card, then press on uninstall button.
    Then the driver should be uninstalled.

    After you restart the laptop, you can try to install the new version.

    > It is also not possible to change the settings for graphic resolution higher than 1280 X 800 Pix.
    The internal screen for laptop supports 1280 x 800 high resolution. It is not possible to choose a higher value.

  • I had to change my Apple ID because of accusations of fraud but my iPhone 6s 9.2 still has the old Apple ID and will not accept old or new passwords. How can I update the iPhone with the new Apple ID 9.2 6s?

    I had to change my Apple ID due to fraudulent charges but my iPhone 6s 9.2 still has the old Apple ID and will not accept old or new passwords. How can I update the iPhone 6s 9.2 with the new Apple ID and password? I tried to perform a complete reset, but which requires the Apple ID and password that doesn't work not... pretty frustrated here.

    YYou have unlink the old iphone you as find my iphone the reset all devices on this subject from your account then plug it to your iTunes then restore a new one after that reset password that under the new phone then connect

  • I managed to see the profile of the artist in Apple's music. How can I update the profile picture?

    I managed to see the profile of the artist in Apple's music. How can I update the profile picture?

    This is a user forum. No Apple itself is allowed to answer your questions here.

    You are probably better contact Apple Support directly to get an answer to your question.

  • How can I update the gps of streets & trips

    How can I update the gps of streets & trips (not sure which version)

    Hi CP agent v-2jeen

     

    Because the question is specific to the streets and trips you contact that it can support the assistance team. I would recommend posting your query to the community of Microsoft streets & trips. Please visit the links below to find a community that will support what ask you in the right direction.

    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    You can also check out below help links-
    http://support.Microsoft.com/ph/1058#TAB0
    http://www.Microsoft.com/streets/en-us/support-and-training.aspx

    I hope this helps.

  • How can I update the expiration date on my credit card account?

    How can I update the expiration date on my credit card account?

    How can I update the expiration date on my credit card account?

    Go to your Bank and get a new card.

  • I'm not having implemented the cd with me. How can I update the window components. by mistake I uninstalled the

    I'm not having implemented the cd with me. How can I update the window components. by mistake I uninstalled the

    Reinstall windows components, you've accidentally deleted when you have the game CD with you.

  • I want to format my hard drive to start over but I do not have the windows installation disc. How can I reinstall the pack without the disks after I cleaned the system?

    Resettlement without disks

    Hello. I have a computer bought from a friend with windows vista home premium installed. I want to format my hard drive to start over but I do not have the windows installation disc. How can I reinstall the pack without the disks after I cleaned the system? Thank you, Kim

    Hello. I have a computer bought from a friend with windows vista home premium installed. I want to format my hard drive to start over but I do not have the windows installation disc. How can I reinstall the pack without the disks after I cleaned the system? Thank you, Kim

    You have a hard drive partition to do - but you would need to contact/see the FAQ from the hardware manufacturer (HP, Dell, Gateway, Lenovo, etc) to see if and how.

    Otherwise - you might have to order (pay for possibly) the factory restore/recovery of the value of the manufacturer.

    http://www.ZDNet.com/blog/Bott/lost-your-Windows-discs-how-to-get-replacement-media-legally/4320?tag=nl.E539

    If it was built * friend *, you will communicate with them.  Ask your media.

  • I don't have access to the standard account is a password on the administrative account and don't remember and I don't want to remove the account because I have important documents, how can I access the account without the password

    I don't have access to the standard account is a password on the administrative account and don't remember and I don't want to remove the account because I have important documents, how can I access the account without the password

    http://support.Microsoft.com/default.aspx/KB/189126

    "Microsoft's strategy concerning lost or forgotten passwords"

    Microsoft cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. Mick Murphy - Microsoft partner

  • URGENT! How can I update the build on BB store

    Hi all..

    I want to update the build on BB store. Please help me how can I update the build on bb store after the download of version 1.

    Now, I need to download version 2.

    Thank you

    After signing, choose manage products, then in the line that corresponds to the product that you're gong to update, you should find an icon "+" under the heading of press.  A click on it.

    I don't remember having a problem, this the first time, so I suspect it's pretty much follow your nose after that.

    It is also available help documentation:

    http://developer.BlackBerry.com/DevZone/blackberryworld/adding_and_apps_and_releases_in_blackberry_w...

  • How can I update the BIOS on my Sony Vaio laptop using disc or usb? Note: I can't windows at all.

    Hi, I want to know how can I update the current bios on my sony laptop using the disc or usb.

    I can't access the windows on the laptop at all, because I'm getting STOP: 0 x 00000 "a5 error that says: your bios is not fully compatible with acpi.»
    This error prevents me to access any live disc or recovery disks.
    I would like to learn more about records tho method.
    Thank you.

    Take it to a repair shop, you have damaged the card mother/connections

Maybe you are looking for