Book description
Save months of trial and error with concise guided recipes in this part-color guide and build exceptional Android applications and wearables and support the new foldable technology by using the latest Jetpack libraries
Key Features
- Leverage the power of the latest Jetpack libraries in your day-to-day Android development tasks
- Explore Wear OS and build large screens to support the foldable world using the declarative approach
- Write tests and debug your code as you discover the most useful tips, tricks, and best practices
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
Android is a powerful operating system widely used in various devices, phones, TVs, wearables, automobiles, and more. This Android cookbook will teach you how to leverage the latest Android development technologies for creating incredible applications while making effective use of popular Jetpack libraries. You’ll also learn which critical principles to consider when developing Android apps.
The book begins with recipes to get you started with the declarative UI framework, Jetpack Compose, and help you with handling UI states, Navigation, Hilt, Room, Wear OS, and more as you learn what's new in modern Android development. Subsequent chapters will focus on developing apps for large screens, leveraging Jetpack’s WorkManager, managing graphic user interface alerts, and tips and tricks within Android studio. Throughout the book, you'll also see testing being implemented for enhancing Android development, and gain insights into harnessing the integrated development environment of Android studio. Finally, you’ll discover best practices for robust modern app development.
By the end of this book, you’ll be able to build an Android application using the Kotlin programming language and the newest modern Android development technologies, resulting in highly efficient applications.
What you will learn
- Use Kotlin programming to build your Android applications
- Leverage modern Android development (MAD) libraries to create exceptional apps
- Explore modern app architecture concepts such as model-view-viewmodel (MVVM)
- Utilize dependency injection, clean architecture, and module organization
- Discover how to write UI and unit tests for your applications
- Get to grips with paging, data binding, and datastore
- Build large screens to support the new foldable world
- Explore principles of Wear OS in modern Android development
Who this book is for
This book is for active junior-to-mid-level Android developers with one to two years of professional experience in developing Android applications who are interested in advancing their knowledge of Android development. The recipes in this book use Kotlin and not Java.
Table of contents
- Modern Android 13 Development Cookbook
- Contributors
- About the author
- About the reviewers
- Preface
-
Chapter 1: Getting Started with Modern Android Development Skills
- Technical requirements
- Writing your first program in Kotlin using variables and idioms
- Creating a Hello, Android Community app using Android Studio
- Setting up your emulator in Android Studio
- Creating a button in Jetpack Compose
- Utilizing gradlew commands to clean and run your project in Android Studio
- Understanding the Android project structure
- Debugging and logging in Android Studio
-
Chapter 2: Creating Screens Using a Declarative UI and Exploring Compose Principles
- Technical requirements
- Implementing Android views in Jetpack Compose
- Implementing a scrollable list in Jetpack Compose
- Implementing your first tab layout with a view pager using Jetpack Compose
- Implementing animations in Compose
- Implementing accessibility in Jetpack Compose
- Implementing declarative graphics using Jetpack Compose
-
Chapter 3: Handling the UI State in Jetpack Compose and Using Hilt
- Technical requirements
- Implementing DI with Jetpack Hilt
- Implementing ViewModel classes and understanding the state in Compose
- Implementing Compose in an existing XML layout-based project
- Understanding and handling recomposition in Jetpack Compose
- Writing UI tests for your Compose views
- Writing tests for your ViewModels
- Chapter 4: Navigation in Modern Android Development
- Chapter 5: Using DataStore to Store Data and Testing
- Chapter 6: Using the Room Database and Testing
-
Chapter 7: Getting Started with WorkManager
- Technical requirements
- Understanding the Jetpack WorkManager library
- Understanding WorkManager state
- Understanding threading in WorkManager
- Understanding chaining and canceling work requests
- Implementing migration from Firebase JobDispatcher to the new recommended WorkManager
- How to debug WorkManager
- Testing Worker implementations
-
Chapter 8: Getting Started with Paging
- Technical requirements
- Implementing the Jetpack Paging library
- Managing present and loading states
- Implementing your custom pagination in Jetpack Compose
- Loading and displaying paged data
- Understanding how to transform data streams
- Migrating to Paging 3 and understanding the benefits
- Writing tests for your Paging Source
- Chapter 9: Building for Large Screens
- Chapter 10: Implementing Your First Wear OS Using Jetpack Compose
- Chapter 11: GUI Alerts – What’s New in Menus, Dialog, Toast, Snackbars, and More in Modern Android Development
- Chapter 12: Android Studio Tips and Tricks to Help You during Development
- Index
- Other Books You May Enjoy
Product information
- Title: Modern Android 13 Development Cookbook
- Author(s):
- Release date: July 2023
- Publisher(s): Packt Publishing
- ISBN: 9781803235578
You might also like
book
Mastering Kotlin for Android 14
Accelerate your Android development journey by mastering the latest Kotlin techniques and libraries to build robust …
book
Programming Android with Kotlin
Developing applications for the Android mobile operating system can seem daunting, particularly if it requires learning …
book
Kotlin Cookbook
Use Kotlin to build Android apps, web applications, and more—while you learn the nuances of this …
book
Kickstart Modern Android Development with Jetpack and Kotlin
Explore modern Android development in Kotlin 1.6.10 with this condensed hands-on guide to building reliable apps …