我使用browserfield显示网页。它成功显示所有网页。
但是当我通过这个网址http://mobile.idaholottery.com/#page-last5pb
时网页未显示。它显示“Bad Request URL”,但如果我尝试在浏览器上打开它的加载。
我的代码是,
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, BrowserFiedConfig.NAVIGATION_MODE_POINTER);
config.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);
config.setProperty(BrowserFieldConfig.ENABLE_COOKIES,Boolean.TRUE);
config.setProperty(BrowserFieldConfig.USER_SCALABLE, Boolean.TRUE);
为什么不在浏览器字段上打开以及如何在bb browserfield中显示网址,是否需要添加任何设置?