As mentioned in the first chapter, Android applications have a thread that is dedicated to updating the UI and also to listening to user interactions and processing the events generated by the user – like the user clicking on a menu.
Let's review the basics of Android's UI thread to guarantee that we separate the work between the UI and background threads in the best way possible.