O'Reilly logo

Android App Development by Franceschi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX D: The AsyncTask Class

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required