Reputation: 392
I am working on an project on which I added a BrowserField
in my screen. When I call this it shows a blank page until the page is loaded.
I want when my complete page is loaded, then I will show it; before that, I show a progress indicator.
Please give your valuable suggestions how I can achieve this task as soon as possible.
Upvotes: 0
Views: 97
Reputation: 31045
For OS 6.0 or higher, you could use an activity indicator like this.
Another option is to use a GaugeField or an animated GIF image, as in this answer, based on a sample supplied by Peter Strange (follow the link to blackberry.com for sample code).
And here's yet another example on Stack Overflow, by Max Gontar.
It really depends on how you want it to look and function (and which OS versions you need to support).
If you're using BrowserField
, and not managing the HTTP connection manually, you can detect the page load finishing with BrowserFieldListener#documentLoaded().
Upvotes: 1