Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android WebView TimeOut

Is there a way to set the timeout value in WebView? I want the WebView to be timeouted if the url is too slow to response.

like image 637
user430926 Avatar asked Nov 29 '10 10:11

user430926


1 Answers

You can do it by setting up a Timer which checks for progress of current page by calling getProgress() and if it is less than some threshold after some specified time then you can dismiss the loading of the current page.

like image 92
bhups Avatar answered Sep 20 '22 07:09

bhups