开发者

Android Webview shows nothing occasionally

I have a webview that loads google oAuth page. That requires multiple redirections before arriving on the final page that asks user to grant access.

Occassionally, the webview doesn't show any data on the screen at all. What I notice is that it almost always show the page when I am debugging (breakpoints). Pressumably, this is a timing issue.

So to get it all of the开发者_运维技巧 way, I have done this: 1) shouldOverrideUrlLoading() is overriden so that i can redirect on the same webview. 2) OnReceivedError and most of the methods on WebViewClient and WebChromeClient are overriden and logged. 3) I added a picture listener to the webview to make sure when any picture is loaded, i am invlidating mywebview

From research, I know that the sequence of URLs being loaded are the same for both the case of working and the case of not working.

Any thoughts?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜