If I recall correctly, ajax requests can indeed call the webview client.
I'm not sure I understand what you're trying to implement, but the
onLoadResource() callback a bit useful.  If you're handling your own
loadURL in shouldOverride() you need to set return false so that the
webview doesn't attempt to load the page twice.

On Fri, Feb 18, 2011 at 11:59 PM, Heath Borders <[email protected]> wrote:
> When I call WebView#loadUrl I expect that I should only get a single
> WebViewClient#onPageFinished call and no
> WebViewClient#shouldOverrideUrlLoading call.  However, I get
> a WebViewClient#shouldOverrideUrlLoading (which I implement by always
> calling WebView#loadUrl and returning true) and then
> two WebViewClient#onPageFinished calls with the same URL.
> The page I'm loading uses a lot of ajax requests.  Do ajax requests invoke
> the WebViewClient?  My page does not have any meta-refreshes in it.
>
> This is quite frustrating.  Am I doing something wrong?
>
> --
> 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



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://developingthedream.blogspot.com/,
http://www.youtube.com/user/revoltingx

-- 
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