I need to implement timeout for my webviews. I want to show the user n error message if the webpage could not be loaded within a desirable time. Is there any way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See Android WebView TimeOut
You basicly have a timer that checks the progress of the webview at some time intervals by calling getProgress(). If the progress hasen’t reached your chosen threshold value after a specific time you call the error message.
Another answer: http://groups.google.com/group/android-developers/browse_thread/thread/04a817864dc86383