zer0stimulus
zer0stimulus

Reputation: 23676

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

In an Android app with multiple Activities, is each activity's UI thread a separate thread or are they actually the same thread (like a global, per app UI thread)?

Upvotes: 5

Views: 3094

Answers (2)

Captain Blammo
Captain Blammo

Reputation: 1897

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

Upvotes: 7

StNickolay
StNickolay

Reputation: 960

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

Upvotes: 4

Related Questions