Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Are all activities in an Android app run in the same thread or separate threads of their own?

I want to know if all activities in an Android app are run in same thread or separate threads of their own?

like image 749
binW Avatar asked May 24 '11 18:05

binW


1 Answers

All activities of one application all run on the same "main" thread, also called "UI-thread". But you can change this behaviour by setting a process attribute in the actvity tag in the manifest file. See http://developer.android.com/guide/topics/manifest/activity-element.html#proc

like image 185
Olegas Avatar answered Nov 14 '22 22:11

Olegas