I am using a webview in an application and currently when webview
starts, a dialog appears showing "please wait, loading" and remains
there on screen until every single dot on the web page is loaded.
which obviously makes it seem working too slow. Now i want is to
dismiss the dialog when webview has something on it and remaining may
keep on loading, so that app may become a little more responsive. what
should i do....????
I have tried to handle it by overriding onProgressChanged() function
but could not do so. this is what i am doing in this overriden
function:

public void onProgressChanged(WebView view, int newProgress) {


                         Log.e("IN IT", "Now onProgressChanged = " + 
newProgress);
                        if (newProgress >= 89) {
                                if (dialog != null) {
                                        dialog.dismiss();
                                }
                        }
                        super.onProgressChanged(view, newProgress);
                }

the problem here is if i retain the same value i,e 89 the spinner
finishes a little earlier showing blank webview for few moments which
is undesired, and if i change the value to 90, then it takes enough
time that whole page is loaded and spinner does not finish off. unable
to understand this all. any help is appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to