阅读背景:

Android中不能在子线程中更新View视图的原因

来源:互联网 

这是一条规律,很多coder知道,但原因是什么呢?

如下:

When a process is created for your application, its main thread is dedicated to running a message queue that takes care of managing the top-level application objects (activities, broadcast receivers, etc) and any windows they create. You can create your own threads, and communicate back with the main application thread through a Handler. This is done by calling the sameWhen a proces




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: