本文介绍了用户停留在加载网页视图。凡设置超时,以及如何让用户浏览了网页视图的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页视图在其慢速网络连接需要很长的时间来加载。超出的问题是,用户基本上停留在网页视图。单击后退按钮不会关闭了网页视图的活动,至少不会在2.2的设备。我能做些什么,以允许用户从网页视图如果时间太长导航回?

I have a Webview which during slow network connections takes a long time to load. The problem beyond that is that the user is essentially stuck on the Webview. Clicking on the back button does NOT close out the Webview activity, at least not on 2.2 devices. What can I do to allow users to navigate back from the Webview if its taking too long?

感谢

推荐答案

您可能需要关闭进度对话框,甚至可以摧毁(通过设置完成())的present的WebView通过设置在定时活动。您可以设置任何你需要的时间。例如,如果时间超过5分钟,然后就可以设置时间限制在5分钟,关闭该对话框并破坏活动。您也可以按照在本thread,如果你想 。希望我的回答可以帮助你。

You might need to dismiss the progress dialog and even you can destroy( by setting finish() ) the present webview activity by setting the timer. You can set whatever time you need. For example, if it takes more than 5 minutes, then you can set the time limit to 5 minutes and dismiss the dialog and destroy the activity. You can also follow as in this thread, if you want . Hope my answer helps you.

这篇关于用户停留在加载网页视图。凡设置超时,以及如何让用户浏览了网页视图的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 14:48