Chapter 4. Concurrency and Software Design Patterns
As a developer, you not only have to write code that works, but also to use existing solutions whenever possible so that you can maintain your code better in the future. If other developers ever have to work on your project, they will quickly understand what you are doing. We can achieve this thanks to software design patterns.
In order to understand the patterns correctly, we need a basic overview of how concurrency works in Android. We will clarify what a UI thread is and talk about the different mechanisms used to delay events in a thread.
We will cover the most commonly used patterns in Android, which will help us further understand Android features and development techniques and become better developers.
- Concurrency
- Handlers and threads
- AsyncTask
- Service
- IntentService
- Loader
- Patterns in Android
- Singleton
- Adapter and holder
- Observer