What is difference between UI thread and main thread?

Đạt Michio

New member
What is difference between UI thread and main thread?
Answer
The
“main” thread is being initialized there
, and all calls to Activity lifecycle methods are being made from that exact thread. In Activity#attach() method (its source was shown above) the system initializes “ui” thread to “this” thread, which is also happens to be the “main” thread.
 

Tìm kiếm

Back
Top