![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
peerless2012
这个作者很懒,什么都没留下…
展开
-
Only the original thread that created a view hierarchy can touch its views. 是怎么产生的
我们都知道,在Android里面,只有主线程(MainThread)才可以更新ui,比如设置TextView的文本内容,ImageView的图片等等。 只要我们在非主线程去操作ui界面,就是抛出"Only the original thread that created a view hierarchy can touch its views."的异常。那么这个异常时怎么抛出来的呢?原创 2016-05-11 14:23:23 · 3501 阅读 · 0 评论 -
Android中更安全的使用AsyncTask
Android中更安全的使用AsyncTask原创 2016-05-28 16:13:23 · 693 阅读 · 0 评论