Yes, I know the documentation for stopLoading() says "Stops the current load."
But when I try to use it to stop loading currently progressing page before loading a new one, it doesn't seem to behave as desired:
07-24 12:53:30.177: V/WebView.loadUrl: http://www.google.com
07-24 12:53:30.227: V/WebViewClient.onPageStarted: http://www.google.com
===> WebView.stopLoading() called here <====
07-24 12:53:31.917: V/WebView.loadUrl: http://www.stackoverflow.com
07-24 12:53:32.697: V/WebViewClient.onPageFinished: http://www.google.com
07-24 12:53:32.767: V/WebViewClient.onPageStarted: http://www.stackoverflow.com
07-24 12:53:33.587: V/WebViewClient.onPageFinished: http://www.stackoverflow.com
As you can see in the log, WebViewClient.onPageFinished() for the first loadUrl() gets called despite the fact that WebView.stopLoading() was called about 1 second earlier.
Why is that?
What does stopLoading() really do?