摘要: “By default, all components of the same application run in the same process and thread (called the "main" thread).” 在通常的情况下,android应用程序都是运行在单一进程与线程之中的。这个线程就是“main”线程,也常被称为”UI线程”。 但是很多情况下我们的应用都可能会执行一些比较耗时的操作,例如获取一个网络的资源、一个文件的传输。如果我们把这些操作放在主线程。就会使线程阻塞(block),如果长时间的阻塞,我们还会看到臭名昭著的“应用程序失去响应”的对话 阅读全文
posted @ 2012-09-05 12:58 孤~影 阅读(303) 评论(0) 推荐(0) 编辑