应用程序启动时,系统会为它创建一个名为“main”的主线程。
When an application is launched, the system creates a thread of execution for the application, called "main."
任何在主线程上运行的这类操作都会导致应用程序冻结。
Any long running operation that operates on the main thread will cause an application to freeze up.
同时本文还会对应用程序与主线程中的Android UI toolkit组件交互以及产生托管工作线程的API进行解释。
The article also explains the API that your application can use to interact with Android UI toolkit components running on the main thread and spawn managed worker threads.
应用推荐