Style Ajax loading Image for WaitScreen

I am creating a basic WaitScreen using an Ajax loading image style.  The image of style ajax is an animated .gif that rotates in a circle.

I can put the image on the screen, but it is not running as it should.  Any ideas?

EncodedImage i = EncodedImage.getEncodedImageResource("ajax-loader.gif");

BitmapField bitmapField = new BitmapField();
bitmapField.setImage(i);

this.add(bitmapField);

This should help you:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Display_an_animated_GIF.html?f...

Tags: BlackBerry Developers

Similar Questions

  • Firefox crashes while loading images for the first time after windows starts upward

    every time I log on windows, Open firefox and load an image or a site with content firefox flash stops responding for 2 or 3 seconds and then returns to normal after that and everything is fine... it happens only when I open firefox for the first time after starting windows to the top...
    thing I tried
    Start windows and Open firefox in safe mode (does'nt fix the problem)

    updated 13 solved the problem...!

  • How can I load images for buttons in mode run not in edit mode



  • 31 FX for Mac suddenly stopped loading images does anyone have a solution to this.

    Mid day Fx stopped loading images for buttons, images on Web sites, etc. Can I use other browsers on my Mac and they work fine. I have reset Fx and tried with no Add - installed add-ons. I even deleted and reinstalled. No change.

    You would need to make the change on the subject: config pref permissions.default.image page and set it to 2 to block images by default.

       http://kb.mozillazine.org/permissions.default.image
    
       http://limi.net/checkboxes-that-kill
       bug 851698 - (checkboxes-that-kill) Get rid of options that kill our product
    
  • I can't load up a book cover of my images for a web site request form

    I can't load up a book cover of my images for a web site request form. Is there a method to do this?

    Hello

    This can depend on the configuration of the web site form. If can accept only text, may have a limit on the maximum characters lol, etc. Some Web site forms do not accept entries stuck, just live by typing.

    I suggest you contact the website for advice.

  • Loading dynamic images for Ipa version - problem solved?

    Hi all

    I am facing the same problem reported in the thread below on loading images dynamically in iOS apps:

    http://forums.Adobe.com/thread/868630

    Mode debugging (using the quick method), images can be loaded dynamically in the iPad app. But when the IPA version final app is generated, the images can be loaded dynamically. Just embedded image are displayed.

    Can anyone advise if this problem has been resolved, or if there is no work around for it?

    Thank you

    Inacio.

    Hello

    The following Flex code coverage your use cases? I sent a [email protected] zip file that has a bunch of flex project a png as below.

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark" title = "HomeView" >

    [Bindable]

    "' private var url: String ="http://www.messersmith.name/wordpress/wp-content/png-national-emblem.png"

    ]]>

    Are you by chance using another swf file that provides the url. No external swf cannot be loaded in the release version. So if your code is prepared in such a way that the url of the png is part of another swf file, then you need to refactor your code to a single swf file.

  • Permutation of loaded xml of Images for the elements in the scene?

    Hello!

    I have a quick question on xml loaded images.

    You can add/attach/swap images for the elements in your scene?

    I would like to manually animate a movieclip using the interpolation of keyframes and the movement. For example, to have a movieclip FLY! on the screen! lol but I want it to be one that has been dynamically loaded image.

    I can't find how to replace an image on a movieclip from a dynamically loaded image.
    Is it still possible?

    Thanks heaps for your time that you guys!

    If the original image is the only object in the movieclip, you can use removeChildAt (0) to get rid of it and use addChild (your_new_image) to replace it.

  • Adding a custom Image for a Style

    Yet another stupid question! Is it possible to add a custom style image? For example, I have a style named attention and I want this style to use a specific image. If possible, please provide details for its implementation. If it is not possible, a code snippet is perhaps the best option?

    Thanks again.

    Hello

    First news of 'bad': I can't find an option to add a background image for a hollow style editor the Robo8 paragraph. You can post as a feature request.

    Each paragraph you create, wil you have in your css style, and it is a bit of trial and error. A major advantage: whenever you need to change the image, it will be just a few minutes!

    If you need help more with your css, just post back.

    Take a bow

    Willam

  • Background images for differnet resolutions

    Hello

    Is there a way to define a single resource (background image) via styles or any other approach that will have definition for all taken screen resolutions supported (BB10 has 3 resolutions defined with portrait/landscape modes = 5 bitmaps)?

    So, I can use this asset without success all the stuff in a code trying to find what the resolution is now and where - and then only - get a correct picture of the assets.

    There are a lot of messages in this forum, but none seems to describe exactly the same problem.

    Thank you

    If you talk to a background image for the application, you have to manage yourself. If you are talking about the splash screen, then you would list each boot image in the XML file.

    You can resize the image to fit the scene, then you might have a rectangular and square and then resized image depending on the scene according to the needs. If you don't want to resize, then you need an image for each resolution device and a naming convention, you could load dynamically depending on the size of the stage (bg_720_720.jpg, etc.).

    CSS may be able to help, since you can load different CSS at startup, but this would require still allows you to define a CSS for each change that you want to support. CSS will be more important when BB10 is available on the PlayBook, since the density of the screen is very different.

    Does that help?

  • Try to load images in OBIEE 10 g

    I am trying to download images (.jpg) to our BI server for use in responses. I have it loaded in our directory of custom styles in the pictures folder. I created a directory in the directory of styles and oc4j_bi directories. Neither led to allowing me to view the files. I can see from the images of the box in the same directory, but not new.

    Everytime I restarted the presentation and web servers.

    I am trying to access the files by entering the syntax "fmap:images / filename.jpg" in the text box in properties/images/custom images.

    The styles directory is "s_ccci". Here are the locations on the presentation server where I loaded files.

    OracleBIData/web/res/s_ccci/images
    OracleBIData/web/res/s_ccci/cruimages
    OracleBI/oc4j_bi/j2ee/home/applications/Analytics/Analytics/res/s_oracle10/images
    OracleBI/oc4j_bi/j2ee/home/applications/Analytics/Analytics/res/s_Siebel77/images

    None of the locations it is for me to display new files. I changed the permissions and checked that the file size matches the output of the images box.

    Any suggestions?

    Keep the file in the location or sub dirs
    1.C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\images
    (and)
    2 C:\OracleBI\web\app\res\s_oracle10\images
    Restart the services
    Use this
    Syntax: fmap:images /.
    for example: fmap:images / one.gif

    Pls correct brand.

  • I have blocked the images for the site how to unlock the

    I clicked block images for khanacademy.org and when it loaded a new page all images where gone and how I got to the window that locked was I clicked on an image and one of the options but now there are only two!

    You can control and manage permissions for the domain in the tab currently selected through these steps:

    • Click the address bar onthe Site identity button"(globe/lock)
    • Click on 'More information' to open ' tools > Page Info "with the Security tab is selected
    • Go to the permissions tab (Tools > Page Info > permissions) to check the permissions for the domain in the currently selected tab

    You can control and manage permissions for all areas on the Subject: authorizations page.

    You can check the "tools > Page Info > media ' for blocked images

    • Select the first link of the image, and then use the cursor key to scroll the list.
    • If an image in the list is grayed out and 'block Images of..."is checked then uncheck this box to unlock pictures of this area.
  • Why are my content > load images-> Exceptions unsaved settings?

    I called some sites as exceptions under content > load images automatically. The next time I open Firefox, these exceptions are not there.
    This also happens in privacy > cookies. The exceptions that I put to disappear the next time I open Firefox.
    How can I make these permanent exceptions?

    In case you use "clear history of Firefox closing:

    • do not delete Site preferences

    Note that compensation "Preferences of Site" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

    You can control and manage permissions for all areas on the Subject: authorizations page or for the current domain via the "Site identity button" (globe/lock) on the address bar and click on "More information" to open "Page Info" and go to the permissions tab.

    You can delete the permissions.sqlite to reset all the permissions.

  • MacBook Pro OS 10.8 retina no DVD drive, how to load drivers for HP PhotoSmart Premium C310 please

    MacBook Pro OS 10.8 retina no DVD drive, how to load drivers for HP PhotoSmart Premium C310 please?

    We do not have the software 10.8 HP for your printer posted on hp.com and yet, once that happens, you can just download and install. You don't need to do it though, in order to get your printer running on your new Mac.  Simply connect your printer, on the sur le meme same wireless network or via a USB cable, add in printing and fax and let the operating system find and install the software from the Apple software update.  You will be able to the printer and scanning will however be of Image Capture.

  • How to load images with a delay?

    Let's say I have a JSON from an HTTP request. The JSON contains several JPG and text links.

    For each JPG link and text, I want that they be displayed in a field like that.

    And here is the code in the field:

    public ProductField extends Field {
    
        String text;
        Bitmap bmp
    
        public CustomField(String text, String imageURL){
            bmp = Bitmap.getBitmapResource("blank.png");
        }
    
        public void paint(Graphics g){
            //....
        }
    
        public void updateBitmap(String url){
            bitmap = BitmapUtil.loadBitmapFromURL(url);
    
            // draw the bitmap on XYRect
            dest = new XYRect(0, 0, bitmap.getWidth(), bitmap.getHeight());
            invalidate();
        }
    }
    

    I realize that load images takes time, so I don't load them immediately. I have only to load the text and display an empty bitmap in the bitmap field. The actual bitmap will be charged when the updateBitmap() method is called.

    And here's how to add these field on the screen (not a 100% valid code, but I hope you will illustrate the idea)

    VerticalFieldManager vfm = new VerticalFieldManager
    
    // an array of bitmap URLS, which will be loaded later
    final String[] urls = new String[json_array_size];
    
    for (int x = 0; x < json_array.size; x++){
        CustomField field = new CustomField(..);
    
        // store bitmap URLs in array
        urls[x] = json_array.getJSONObject(x).getString("url");
        vfm.add(field);
        vfm.add(new SeparatorField());
    }
    
    Thread t = new Thread( new Runnable() {
        public void run() {
            for(int i = 0; i < len;i += 2) {
                synchronized(UiApplication.getEventLock()) {
                    CustomField cf = (CustomField) vfm.getField(i);
                    cf.updateBitmap(urls[i]);
               }
                try{
                    Thread.sleep(2000);
                }
                catch(Exception e){ }
                }
            }
    });
    

    Seems that all the images are loaded simultaneously. What I want is something like:

    display bitmap #1-2 seconds of delay - display bitmap #2 - delay 2 sec - display bitmap #3 - delay 2 sec etc..

    How to solve this problem?

    You can remove the block synchronized as you don't make any changes to the user interface, you read a value of a UI element.
    About your son, I can't get started, maybe a start() would help. do not race

  • Load image into ImageView using file:///

    Hello

    According to this article http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/The-Different-Methods-of-Loadi... we should be able to load images QML using file:/// and absolute path.

    For the life of me I can't load an image not only of shared/accounts/1000/shared/subfolders, but even of the application data folder.

    Can someone share * work * example of loading images in ImageView using file:///

    Thank you.

    https://developer.BlackBerry.com/Cascades/documentation/UI/Image_Resources/content.html

Maybe you are looking for

  • Qosmio G30: Cannot install Windows 7 due to lack of RAID driver

    Hello I tried to install Win 7 Home Premium in G30 under Win XP (Media Edition) without success.The issue is driver Toshiba Raid is missing. I have since then download and install the new drivers (V1.10.0016).Always Win 7 update s/w has no overprint.

  • When I send hotmail to my friends, he finds himself in their spam folder

    I had another friend of mine try to send e-mail to my gmail account and its hotmail went straight to spam.  I also try to send e-mail to my area of work and it returns an e-mail in my Inbox: It is a State that is automatically generated delivery Noti

  • Cannot import pictures from camera Samsung Digimax 600.

    Original title: try to import 600 camera digimax fromsamsung photos, but when I press import a box scanner happens every time. When I try to import photos from my camera a while on a scanner is displayed and I don't have a scanner.

  • connection problems with wireless devices

    I have problems getting my network connected to my E1200. Office Wireless is connected, but if a device needs a password, it fails to connect.  I went into the zone administration and changed the password, but clocks site right after she says my sett

  • map memory in wireless network shows do not in a single account

    Hi - I have an Epson SX515SW printer, which is on a wireless network. I run Vista 32-bit SP2. This problem is produced only since I provided an image my Toshiba laptop after 2 years & had my single BSOD (due to conflicts between pieces of AV s/w, lef