Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Regular Contributor
Posts: 73
Registered: ‎07-12-2011
My Device: 9800
My Carrier: Programmer

Show gif image url on blackberry

i've used BrowserField for display url.

    String url ="http://www.wfaa.com/templates/mobile_indv_images?cpath=http://belo.bimedia.net/WFAA/weather/animated..."

my code is here,

            BrowserFieldConfig config = new BrowserFieldConfig();
            String userAgent = "BlackBerry" + DeviceInfo.getDeviceName() + "/" +    DeviceInfo.getSoftwareVersion() +" Profile/" + System.getProperty("microedition.profiles") +" Configuration/" + System.getProperty( "microedition.configuration") + " VendorID/" + Branding.getVendorId();
            config.setProperty(BrowserFieldConfig.USER_AGENT, userAgent);
            config.setProperty(BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE);
            config.setProperty(BrowserFieldConfig.ENABLE_GEARS, Boolean.TRUE);
            config.setProperty(BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
            config.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);    
            config.setProperty(BrowserFieldConfig.USER_SCALABLE, Boolean.TRUE);
            myBrowserField = new BrowserField(config);

Its working on 9800, but when i check on 9930 simulator , the gif image not loading browserfield.

Some time it has show, sometime it has not show on 9930 device (os version 7) browserfield.


why its happen. how to show gif image url on 9930 device.