我已经将BrowserField用于显示网址。
String url ="http://www.wfaa.com/templates/mobile_indv_images?cpath=http://belo.bimedia.net/WFAA/weather/animated-loops/ssite/640x480/collin.gif"
我的代码就在这里,
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.ENABLE_COOKIES,Boolean.TRUE);
config.setProperty(BrowserFieldConfig.USER_SCALABLE, Boolean.TRUE);
myBrowserField = new BrowserField(config);
myBrowserField.requestContent(url);
它的工作在9800,但是当我检查9930模拟器时,gif图像没有加载浏览器场。
有一段时间它已经显示,有时它没有在9930设备上显示(os版本7)。为什么会这样。如何在9930设备上显示gif图像网址。