What is thread safe in Android?

Daniel William

New member
What is thread safe in Android?
Answer
By design, Android
View objects are not thread-safe
. An app is expected to create, use, and destroy UI objects, all on the main thread. If you try to modify or even reference a UI object in a thread other than the main thread, the result can be exceptions, silent failures, crashes, and other undefined misbehavior.
 

Tìm kiếm

Back
Top