i need to show a loading bar or a message while buffering in blackberry webview. Below is my code for webview
BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig(); myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER); BrowserField browserField = new BrowserField(myBrowserFieldConfig); add(browserField); browserField.requestContent("http://azontong.com/home.php?user=bb");
You can check out
BrowserFieldListener, and combine it with whatever loading indicator you want. The easiest would be to just put a gif at the bottom of the screen. I'm not entirely sure when exactly each callback is fired, but I haven't seendownloadProgressfired reliably enough to put in an actual progress bar. I could be wrong though.The following is an example of how the listener would look: