Before Lollipop, life was easy. You had a main thread - sometimes also called a UI thread - in which all GUI files were made (and which you avoided under any circumstances for lengthy operations to avoid any hiccups), and you had background threads where you made this very promising one material.
Now in Lollipop and later versions of Android IIRC, the term UI thread seems to indicate to the user a new RenderThread , a thread that, for example, is used to animate ripples, hero elements between actions, or any other kind of animation that should happen when the main thread processes input events or busy creating new material for you in the background.
In Android Studio 1.3, all three types of streams now have their own annotation to indicate that a particular piece of code should work on that particular stream. The question for me now is: should I, as an application developer, run something on UIThread , i.e. RenderThread , and as such use @UIThread in my application?
java android multithreading android-5.0-lollipop
Thomas keller
source share