
Clean Android Architecture: Take a layered approach to writing clean, testable, and decoupled Android applications
Author(s): Alexandru Dumbravan (Author)
- Publisher: Packt Publishing
- Publication Date: 20 Jun. 2022
- Language: English
- Print length: 368 pages
- ISBN-10: 180323458X
- ISBN-13: 9781803234588
Book Description
Learn how to build, maintain, and test Android applications using clean architecture principles
Key Features
- Understand various software design principles and patterns to make an application more testable
- Structure your application’s code into different layers and components to make it more maintainable and flexible
- Study popular libraries and frameworks and integrate them into an application
Book Description
As an application’s code base increases, it becomes harder for developers to maintain existing features and introduce new ones. In this clean architecture book, you’ll learn to identify when and how this problem emerges and how to structure your code to overcome it.
The book starts by explaining clean architecture principles and Android architecture components and then explores the tools, frameworks, and libraries involved. You’ll learn how to structure your application in the data and domain layers, the technologies that go in each layer, and the role that each layer plays in keeping your application clean. You’ll understand how to arrange the code into these two layers and the components involved in assembling them. Finally, you’ll cover the presentation layer and the patterns that can be applied to have a decoupled and testable code base.
By the end of this architecture book, you’ll be able to build an application following clean architecture principles and have the knowledge you need to maintain and test the application easily.
What you will learn
- Discover and solve issues in Android legacy applications
- Become well versed in the principles behind clean architecture
- Get to grips with writing loosely coupled and testable code
- Find out how to structure an application’s code in separate layers
- Understand the role each layer plays in keeping the application clean
- Integrate existing frameworks and libraries for each layer
Who this book is for
This book is for Android developers who want to learn about managing the complexity of their applications, and is also highly recommended for intermediate or advanced Android developers looking for a go-to guide for clean architecture and the integration of various Android technologies. New developers familiar with the fundamentals of Android app development will find this book useful too.
Table of Contents
- Getting Started with Clean Architecture
- Deep Diving into Data Sources
- Understanding Data Presentation on Android
- Managing Dependencies in Android Applications
- Building the Domain of an Android Application
- Assembling a Repository
- Building Data Sources
- Implementing an MVVM Architecture
- Implementing an MVI Architecture
- Putting It All Together
Editorial Reviews
Review
“In Clean Android Architecture, Alexandru Dumbravan applies his experience of developing Android applications for over 10 years. He takes you through a quick tour of the core software design principles and through the key features of the Android framework and supporting libraries. Next, you’ll dig deep into data sources. It’s vital to understand the libraries and frameworks that are available for you to access and manage data. Then Alexandru naturally transitions into data presentation. How do you present data to the user? You’ll break down how the user interface (UI) works and how to build your own UI solution.
Next, you’ll learn how to manage dependencies. Part of the value that Alexandru brings to the book is that he shows you how these different challenges were handled in the past and what has changed over time. You’ll then see how to build the domain layer to sit in the center of your application and control your app logic. Next, you’ll build the data layer to create and manage your data. The presentation layer handles the UI and the input/output. Finally, you’ll put the modules together and test your application.
By building an Android application with a clean architecture, you’ll be able to put every piece of your code to work, and you’ll end up with a far more scalable, performant, and maintainable application. This is a book that you’ll want to come back to to make sure you’ve got each step of this process down. And once you do, well, we all know that the present and future is in mobile applications. So, the question is, where are you taking us?
—
Ed Price, Senior Program Manager of Architectural Publishing
Microsoft, Azure Architecture Center
About the Author
Alexandru Dumbravan has been an Android Developer since 2011 and worked across a variety of Android applications which contained features such as messaging, voice calls, file management, and location. He continues to broaden his development skills while working in London for a popular fintech company.
Wow! eBook


