原文:Android开发:Can't create handler inside thread that has not线程问题解决

一 问题如下 报错内容:Only the original thread that created a view hierarchy can touch its views.Only the original thread that created a view hierarchy can touch its views. 问题分析:在Android中不允许Activity里新启动的线程访问该Ac ...

2020-03-24 20:12 0 2688 推荐指数:

查看详情

Can't create handler inside thread that has not called Looper.prepare()

最近做项目时出现个问题。 在一个基类中,创建一个Handler对象用于主线程向子线程发送数据,代码如下 但不知道为啥一直报错:Can't create handler inside thread that has not called Looper.prepare()。 搜索后 ...

Mon Jan 14 00:10:00 CST 2013 3 133790
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM