开发者

Android: Is each UI thread in an Activity a separate threads?

开发者 https://www.devze.com 2023-01-07 21:11 出处:网络
In an Android app with multiple Activities, is each activity\'s UI thread a separate thread or are they actuall开发者_StackOverflow中文版y the same thread (like a global, per app UI thread)?Each appli

In an Android app with multiple Activities, is each activity's UI thread a separate thread or are they actuall开发者_StackOverflow中文版y the same thread (like a global, per app UI thread)?


Each application has one UI thread, which is used to run whichever Activity is in the foreground.

There is some more information here:

http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html

http://android-developers.blogspot.co.il/2009/05/painless-threading.html


No, Android app have only one UI thread for all Activities.

0

精彩评论

暂无评论...
验证码 换一张
取 消