WebView调用了onReceivedError之后,还是调用onPageFinished。
2015-10-27 19:45
369 查看
http://stackoverflow.com/questions/23808868/is-onpagefinished-is-called-after-onreceivederror-in-anyway
可以看到
you that the WebView has stopped loading.
you there was an error. They're not "success" and "failure" callbacks which is why you'll get both in case of an error.
onPageFinished仅仅表示网页加载完成了,不能说明这个网页是否成功的加载了。
网络] 判断webview加载网页是否完全加载成功
http://www.eoeandroid.com/forum.php?mod=viewthread&tid=327795&extra=page%3D1&page=2
解决方案:webview加载网页,网页中js可以判断图片是否加载完成,判断之后调用本地代码通知一下就知道了
可以看到
onPageFinishedtells
you that the WebView has stopped loading.
onReceivedErrortells
you there was an error. They're not "success" and "failure" callbacks which is why you'll get both in case of an error.
onPageFinished仅仅表示网页加载完成了,不能说明这个网页是否成功的加载了。
Android 网络] WebView如何判断页面真正成功加载?
http://www.eoeandroid.com/thread-304637-1-1.html?_dsign=f339dc4e
[Android网络] 判断webview加载网页是否完全加载成功
http://www.eoeandroid.com/forum.php?mod=viewthread&tid=327795&extra=page%3D1&page=2
解决方案:webview加载网页,网页中js可以判断图片是否加载完成,判断之后调用本地代码通知一下就知道了
相关文章推荐
- android 屏幕适配的问题
- IOS开发笔记11-指针(上)
- android 应用 kill ,restart ,重启,方法
- 关于在android项目中使用fragment的个人经验
- Android ViewDragHelper完全解析 自定义ViewGroup神器
- Android动画精讲一:从setTranslationX谈属性动画和view动画的区别
- Android按返回键,程序进入后台运行,不关闭程序,finishAcrivity
- 自学Unity之做一个MOBA游戏3——血条显示
- XRay1
- 微信公众平台API的Java通讯实现
- iOS 统计打点那些事
- Android 读书笔记---Intent 和 IntentFilter
- android数据存储之数据库
- Unity3D之如何将包大小减少到极致
- Android下使用Properties文件保存程序设置
- Android onTouch事件传递机制
- android soap webservers 无法执行 报错 ht.call(SOAP_ACTION, envelope);解决方法
- iOS运行时编程(Runtime Programming)和Java的反射机制对比
- swift-UITableView的基本使用
- 读书笔记cocos2d-x之代码风格