![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
大丶葱
这个作者很懒,什么都没留下…
展开
-
错误:Only the original thread that created a view hierarchy can touch its views——Handler的使用&用其更新UI
转载自:http://blog.csdn.net/djx123456/article/details/6325983今天写了一个更新UI的小例子,没想到出了log打印了这样一个错误:Only the original thread that created a view hierarchy can touch its views。goolgle了一下找到了原因。原来android中相关的view和...转载 2018-03-16 11:14:58 · 1154 阅读 · 0 评论 -
android 快速创建一个新的线程 & android线程的正确使用
下面的一段转载自:http://blog.sina.com.cn/s/blog_71dbc27f01017mnj.html下面是快速创建一个新线程的方法:第一种:直接创建子线程并启动 new Thread() {@Overridepublic void run() { //这里写入子线程需要做的工作 } }.start(); 第二种:先创建子线程,然后启动 ...转载 2018-03-10 10:12:03 · 25660 阅读 · 0 评论