【已解决】Calling View methods on another thread than the UI thread.

来源:互联网 发布:压菠菜的软件 编辑:程序博客网 时间:2024/06/06 17:05

把你报错的代码行执行在主线程

runOnUiThread(new Runnable() {    @Override    public void run() {        //你的报错代码    }});
在4.4之后WebView的使用有点改动

阅读全文
0 0
原创粉丝点击