Walles wrote: > I have a WebView that I've asked to load a page using webView.loadUrl > (). > > How do I get a notification when the WebView has completed loading + > rendering the requested page?
Step #1: Implement a custom subclass of WebViewClient, overriding onPageFinished() and putting in there your logic to be invoked when the page is ready: http://developer.android.com/reference/android/webkit/WebViewClient.html#onPageFinished(android.webkit.WebView,%20java.lang.String) Step #2: Attach an instance of that WebViewClient subclass to the WebView via setWebViewClient(): http://developer.android.com/reference/android/webkit/WebView.html#setWebViewClient(android.webkit.WebViewClient) Step #3: There is no Step #3 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

