zoukankan      html  css  js  c++  java
  • CalledFromWrongThreadException



    更新UI的位置不正确,线程解析数据    handler. mssage 中更新 


    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.








    02-25 14:58:01.250: E/AndroidRuntime(17082): FATAL EXCEPTION: Thread-1450
    02-25 14:58:01.250: E/AndroidRuntime(17082): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:4692)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewRootImpl.focusableViewAvailable(ViewRootImpl.java:2649)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.ViewGroup.focusableViewAvailable(ViewGroup.java:714)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.View.setFlags(View.java:8382)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.view.View.setFocusableInTouchMode(View.java:5673)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.widget.AdapterView.checkFocus(AdapterView.java:717)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at android.widget.ListView.setAdapter(ListView.java:461)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at com.huashang.huishang.activity.FragmentPageMessageTab$2.run(FragmentPageMessageTab.java:87)
    02-25 14:58:01.250: E/AndroidRuntime(17082): at java.lang.Thread.run(Thread.java:856)




  • 相关阅读:
    mysql 8 查询报错(sql_mode=only_full_group_by)
    docker安装mysql8版本后 客户端连接出现client does not support authentication...
    docker常用命令
    查看tomcat日志相关Linux命令
    java项目部署到linux服务器涉及的命令
    ehcache与redis对比
    JS中调用BigDecimal处理金额
    thymeleaf模板 th:href 踩坑
    汇总一些绝对有价值的解决方案,边学习边收集
    spring注解总结,spring注解大全
  • 原文地址:https://www.cnblogs.com/flyingsir/p/3983703.html
Copyright © 2011-2022 走看看