image not deleted

Hello

I'm having an animation of a loading image and then replaces the image I want stove display when it has been downlaoded. could someone tell me what I am doing wrong?

public class GallerUI extends MainScreen {

    private VerticalFieldManager imageContainer;
    private Field image;
    private String URI;
    private AnimatedGIFField loadingScreen;

    public GallerUI(String URI){
        this.URI = URI;
        imageContainer = new VerticalFieldManager(VerticalFieldManager.FIELD_HCENTER);
        loadingScreen = new AnimatedGIFField(((GIFEncodedImage)GIFEncodedImage.getEncodedImageResource("PleaseWait.bin")));
        imageContainer.add(loadingScreen);
        Thread treadgallery = new Thread(new Runnable()
        {
            public void run()
            {
                displayImage();

            }
            });
        add(imageContainer);
        treadgallery.start();

        //setTitle("Please wait while image loads");
    }

    private void displayImage(){

        try {
            if (image !=null){
                imageContainer.delete(image);
            }
            image = new WebBitmapField( this.URI, false,true);
            imageContainer.delete(loadingScreen);
            imageContainer.add(image);          

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    protected  boolean  onSavePrompt() {
        return false;
    }
}

I'm not clear on what exactly is your problem.

However, I fear that you are trying to do too much at once.  I suggest you expand this project in three phases:

(a) display screen with an animation instead of the actual image

(b) create a download process that will get your real picture

(c) make the download process replace the animation.

I think you'll find that (b) is as much work, so I actually suggest you that start with that.  There are a number of threads on this forum dealing with download of the images, then I suggest that you search around some tips and tricks.

Tags: BlackBerry Developers

Similar Questions

  • Windows boot image not deleted.

    Hello people,

    I recently had a problem (associated virus) with 10 installed windows on my MBP 2015 to lead back me to zero and I did because I had the same problem with a windows pc and it was perfect. Once the reset is complete, I noticed that the boot camp software was deleted! and here the problems started. I searched the web to find out how to get it back, but I was disappointed. I went back to OS X to delete the windows using boot camp, but he did not have any installed windows!. So I decided to format the partition and resized only Macintosh HD space. Then I rebooted the system pop up with error windows! I did it again with holding "alt" key and it turns out that it has not been deleted. How to get rid of him?

    Here is the output of the Terminal.

    List of $ diskutil

    / dev/disk0 (internal, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 251,0 disk0

    1: disk0s1 EFI EFI 209.7 MB

    2: Apple_CoreStorage Macintosh HD 250.1 GB disk0s2

    3: disk0s3 Apple_Boot Recovery 650,1 MB HD

    / dev/disk1 (internal, virtual):

    #: NAME SIZE TYPE IDENTIFIER

    0: Apple_HFS Macintosh HD GB + 249,8 disk1

    Logical volume on disk0s2

    1A536D95-E994-47F8-A9A2-605C2AA7AE3C

    Unlocked encrypted

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

    $ sudo TPG - r show/dev/disk0

    start index size summary

    0 1 PMBR

    1 1 Pri GPT header

    2 32 table GPT Pri

    34 6

    40 409600 1 part TPG - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640 488555312 2 part TPG - 53746F72-6167-11AA-AA11-00306543ECAC

    488964952 1269760 3 part TPG - 426F6F74-0000-11AA-AA11-00306543ECAC

    490234712 7

    490234719 32 table dry GPT

    490234751 1 dry GPT header

    You do not have the Windows partition, but your EFI (disk0s1) partition has vestiges of Microsoft Bootmanager.  You can use Re: cannot resize the Macintosh HD partition as a reference, mount your EFI partition and check if you have a directory of Microsoft in your EFI partition?

  • My account is migrated to a new server, so I had to recreate the same account in Thunderbird, but I can not delete the old one - they appear together now.

    My account is migrated to a new server, so I had to recreate the same account in Thunderbird, but I can not delete the old one - they appear together now.

    If there is no email from the old account that you want to keep, move them in local directories first.
    Tools > accounts settings
    OR
    Right click on the email account in the fodler pane, and then select "settings".

    Select the account you want to delete.
    Click on "Actions account."
    Select 'delete account '.
    Click OK

    See the image as an aid:

  • Build error: Add image and delete if possible.vi

    Hello

    I use LabVIEW 9.0 with the request of the manufacturer, and when I try to build my application I get this error:

    An error occurred during the recording of the following file:

    C:\Program NIUninstaller Instruments\LabVIEW 2009\vi.lib\printing\ReportDocExtensions.llb\Standard Report\Append image and delete if possible.vi

    Invoke the node in AB_Source_VI.lvclass:Close_Reference.vi-> AB_Build.lvclass:Copy_Files.vi-> AB_Application.lvclass:Copy_Files.vi-> AB_EXE.lvclass:Copy_Files.vi-> AB_Build.lvclass:Build.vi-> AB_Application.lvclass:Build.vi-> AB_EXE.lvclass:Build.vi-> AB_Engine_Build.vi-> AB_Build_Invoke.vi-> AB_Build_Invoke.vi.ProxyCaller

    Method name: Save target: Instrument

    I did some research and it seems to be related to save an image of the façade to the HTML file.  I am not save the image of front at all, nor am I store anything to a file HTML, Excel only.

    Just in case I had somehow inadvertently added to my project (this is my first project in LabVIEW and I made all kinds of mistakes, haha) I did a search for my project to "Add image and delete if possible.vi" and it has not been found.

    Does anyone have ideas on this?  I don't know what other information I should post here, please let me know if I missed something.

    Thank you!

    Apparently, I forgot the first rule of solving problems when you use a Windows operating system.

    Re-start.

    He is fine now.  Go figure.

  • How to delete an image without deleting the layer?

    I consider myself an intermediate photoshop user. Since the introduction of the CS6, I can't do something simple - remove an image without deleting the layer. I don't want the deleted layer because it has a clipping mask. The tech support agent told me to use the Eraser tool. It is not effective. Is there a way to do this? I don't understand why it is now so complicated. I'm so frustrated.

    Has CTRL or cmd to select all, and then press the delete key. Just make sure that the layer is selected first.

  • Is it possible to images 'batch delete '?

    When I delete an image I also move it to the trash. This works very well for images by selecting just or it have be the image displayed, and then press the delete key, and then choose "move to trash" in the dialog box that appears.

    When I try this for images that I selected in a group, by choosing several, or selecting command and then shift - the last in a sequence of contiguous images, when I hit the delete button, the dialog box appears and I select 'move to trash', but none of the images are deleted - I must go back and select remove individual images.

    Shouldn't be able to delete several images at the same time?

    TIA,


    Ken

    Ken,

    Yes, you should - however, you need to select grid mode not the film.

    If this does not work then it is a quirk in your preferences file.  You can make a copy of the Preferences file (name not LR), then delete it and LR will rebuild one at startup.  I had to do it twice in LR2 so I guess that the problem still exists in LR3.  Of course, I hope that the first proposal is the right answer.

    Jeff

  • "WARNING: Images not within the site"

    "WARNING: Images not within the site"

    (Dreamweaver 8 - Mac)

    I am trying to download my first site, but I get the warning above when I try.  My images ARE in the 'root' folder in a file named "images".  AND in my finder, they are all fine.  And when I load in a browser to test the site everything works fine.

    During my construction, I imported images in my site from another file outside my "root folder" and Dreamweaver automatically copied them more in my "pictures" folder in my "root folder".

    Because Dreamweaver copied the images automatically, I deleted the original with the image file.

    Can anyone offer an explanation and a solution?

    Check your site definition. You can set a folder of images by default wrong with an absolute path.

    Mylenium

  • sparsebundle disk image not mounting

    I've recently upgraded to Mac OS Sierra and now I can not mount an image of disk sparsebundle.

    I enter the password, and then nothing happens.

    I tried the same image on a Mac running Leopard and it opens fine.

    I tried a few other sparsebundle some and other encrypted disk images not. Some are open very well, but others do not.

    So, it doesn't seem to be a problem of sparsebundle encrypted disk image.

    Any suggestions?

    After investigation a little more the problem is Sophos AV

    Turn it off and the disk mount fine images.

    I hope this helps.

  • My iMac will not delete mail.

    My iMac will not delete mail. When I try to delete, (move to trash), I get this type of message the message "up to 75% o! surprise sale is here + free delivery"could not be moved to the mailbox"Trash - on My Mac""9346661.emlx"could not copy to 'Messages', because an item with the same name already exists. »

    What is happening and how to fix it?

    Try to delete/empty the trash, try again and then tell me.

  • I can not delete unsent Email stuck in Outbox in my iPhone SE 9.3.4

    I can not delete unsent Email stuck in Outbox in my iPhone SE 9.3.4. I tried the usual procedure, but it did not work

    Try resetting your e-mail account. First close your Mail application completely from the window of the selector app by double clicking the Home button and drag the email preview pane up until it disappears from the display. Then go to settings > Mail, Contacts, calendar > find your e-mail provider, click the account, and the blow to remove. Then restart the unit. Then go to settings > mail... and to add the account.

  • TBird does not delete messages from POP3 server with setting of ' leave messages on the server until I delete them.

    I use the pop3 Storage account. I installed thunderbird to download messages only when I ask them. I installed thunderbird to leave messages on the server until I delete them. I am able to send and receive messages without problem, but the messages that I delete the Inbox of Tbird not deleted from the server.

    In addition, what is the expected behavior for messages on the server if I move them to a local folder? That should remove them from the server, or they remain on the server until I have remove the local folder?

    Thank you.

    Deleting a message that "it mark as deleted", but it's still in the folder that is hidden from view. It's now displaying in the folder "deleted".

    you need to compact your file.
    ClickON Inbox right and select "Compact".

    Inbox, junk and probably get most of the activity when it comes to deletion, so they should be compacted ona regularly.
    I have several emails that I will delete every day, so these two fodler get compacted by day.

    See info on:
    maintain a healthy thunderbird.

    Compacting file, what it does and why it is important.

    Info Backup:

  • Why my emails are not deleted the gmail server when I remove it from my Inbox?

    I use POP on Thunderbird version 31.7.0. I put the box "Leave Messages on server" and box "until I delete them. (Some articles say that the message is "until I have delete or move them from the Inbox" but my option just says "until I delete them".) It is perhaps a matter of version). When I delete a message from my Inbox, it is NOT deleted from the gmail Server inbox. This means that I have to delete them in two places, which is a pain, and I will probably try a different e-mail program if I can't solve this problem. Can you please help me in PLAIN English. I'm not a techie.

    I read the email in Thunderbird and then deleted. I compacted files. Then, I went into the Inbox, gmail and up-to-date, but email is still there. I did all the steps in the correct order or is there something else I'm missing.

  • Removal of Thunderbird has not deleted from Yahoo

    My Thunderbird account deletion has not deleted the message from my Yahoo account.

    This means that the message is removed from the server immediately when you open it in Thunderbird.
    Does this solve your problem?

  • Thunderbird does not delete messages!

    I tried many Linux e-mail clients. The best is Thunderbird. Of course, it's not flashy out of the box and requires some adjustments to get it as good as the products Ms. But get there eventullay. However, one thing is bugging me and me trying to drop Linux all together and go back to Windows. Thunderbird does not delete messages. I tried the delete icon, I tried to hit the button Delete. Nothing works. I looked in the forums, many people's complaint. Some say, if you have several accounts, this happens. I have four accounts. He is pretty happy poor of thunderbird. Any solution please? Thank you

    When your problem has been resolved, can mark this thread as "solved" Please?
    Thank you.

  • -Add-ons who do not delete

    There are two Add-ons-Toolbar backup AVG (i) and (ii) Skype Click-to-Call which are not
    delete, disabled in the Add-ons Manager, however, they do not present a button "remove."
    they remain so unless a new top series of Firefox. In addition, so that home pages
    remain stable, new tab is 'hijacked' by AVG Safe Search, a "back to the new tab" button is
    Here, however, this requires a restart of the browser, then the same "AVG Safe Search" tab
    persists for several days... restart we get free this finally.

                            With kind regards,
                                                              happy Whitsun,
                                                                                           Colin.
    

    Try Avast browser cleanup.
    http://files.avast.com/files/Tools/avast-Browser-Cleanup.exe

Maybe you are looking for