zoukankan      html  css  js  c++  java
  • androidwebview timeout

    1. public class MyWebViewClient extends WebViewClient {  
    2.     boolean timeout;  
    3.    
    4.     public MyWebView() {  
    5.         timeout = true;  
    6.     }  
    7.    
    8.     @Override  
    9.     public void onPageStarted(WebView view, String url, Bitmap favicon) {  
    10.         new Thread(new Runnable() {  
    11.             @Override  
    12.             public void run() {  
    13.                 try {  
    14.                     Thread.sleep(1000);  
    15.                 } catch (InterruptedException e) {  
    16.                     e.printStackTrace();  
    17.                 }  
    18.                 if(timeout) {  
    19.                     // do what you want  
    20.                 }  
    21.             }  
    22.         }).start();  
    23.     }  
    24.    
    25.     @Override  
    26.     public void onPageFinished(WebView view, String url) {  
    27.         timeout = false;  
    28.     }  
    29. http://blog.csdn.net/dreamer0924/article/details/8640797
    30. }  
  • 相关阅读:
    Linux shell(3)
    Linux shell 编写(2)
    Linux shell 编写(1)
    团队冲刺(一)
    峦码团队任务表
    电梯演讲&界面展示说明
    第一次小组会议——NABCD讨论
    开发项目&团队介绍
    Linux中查看各文件夹大小命令:du -h --max-depth=1
    shell脚本[] [[]] -n -z 的含义解析
  • 原文地址:https://www.cnblogs.com/wcLT/p/8012725.html
Copyright © 2011-2022 走看看