December 2016
Intermediate to advanced
682 pages
17h 24m
English
Chapter opener image: © Fon_nongkran/Shutterstock
A Thread is a sequence of code that executes inside an existing process. The existing process is often called the Main Thread. For an Android app, it is also called the User Interface Thread. There can be several threads executing inside the same process, and threads can share resources, such as memory.
When we start the app, our code executes in the main thread. Sometimes, we need to start another thread. For example, we may need to retrieve data from a remote location. Furthermore, we may need that other thread to finish before we use and place its data ...
Read now
Unlock full access