https://www.apress.com/gp/book/9781484259368 Build and deploy your Java-based Android apps using the popular and efficient Android Studio 4 suite of tools, an integrated development environment (IDE) for today's Android developers. With this book, you’ll learn the latest and most productive tools in the Android tools ecosystem, ensuring quick Android app development and minimal effort on your part. Among these tools, you'll use the new Android Studio 4 features, including an upgraded CPU profiler UI, a new build speed window, the multi-preview feature, and the live layout inspector. After reading and using this book, you'll be able to efficiently build complete Java-based Android apps that run on any Android smartphone, tablet, smart watch and more. You’ll also be able to publish those apps and sell them online and in the Google Play store. What You Will Learn Use Android Studio 4 to quickly and confidently build your first Android apps Build an Android user interface using activities and layouts, event handling, images, menus, and the action bar Work with new tools in Android Studio 4: Jetpack compose support, a smart editor for ProGuard rules, a new motion layout editor, a new Android Gradle plugin, and a fragment wizard with new fragment templates Integrate data with data persistence Access the cloud Who This Book Is For Those who may be new to Android Studio 4 or Android Studio in general. You may or may not be new to Android development. Some prior experience with Java is recommended. Table of Contents About the Author About the Technical Reviewer Acknowledgments Introduction Chapter Overview Chapter 1: Android Overview History The Operating System Summary Chapter 2: Android Studio Setup Configuring Android Studio Hardware Acceleration Summary Chapter 3: Project Basics Create a Project Create an AVD Summary Chapter 4: Android Studio IDE The IDE Main Editor Editing Layout Files TODO Items How to Get More Screen Space for Codes Project Tool Window Preferences/Settings Summary Chapter 5: Android Application Overview What Makes Up an Android Project Application Entry Point Activities Intents Summary Chapter 6: Activities and Layouts Activity Layout File View and ViewGroup Objects Containers Activity Class Hello World Modifying Hello World Summary Chapter 7: Event Handling Intro to Event Handling Handling Long Clicks Summary Chapter 8: Intents What Intents Are Implicit Intents Summary Chapter 9: Fragments Introduction to Fragments Summary Chapter 10: Navigation Navigation Before Architecture Components Navigation Components Working with Jetpack Navigation Summary Chapter 11: Running in the Background Basic Concepts The UI Thread Threads and Runnables Summary Chapter 12: Debugging Types of Errors Syntax Errors Runtime Errors Logic Errors Debugger Single Stepping Summary Chapter 13: Testing Types of Testing Unit Testing JVM Test vs. Instrumented Test A Simple Demo Implementing the Test Running a Unit Test Instrumented Testing Setting Up a Simple Test Recording Espresso Tests More on Espresso Matchers Espresso Actions Summary Chapter 14: Working with Files Internal and External Storage Cache Directory How to Work with Internal Storage Summary Chapter 15: BroadcastReceivers Introduction to BroadcastReceivers System Broadcast vs. Custom Broadcast Two Ways to Register for Broadcast Summary Chapter 16: Jetpack, LiveData, ViewModel, and Room Lifecycle Aware Components ViewModel LiveData Room Summary Chapter 17: Distributing Apps Prepare the App for Release Prepare Material and Assets for Release Configure the App for Release Build a Release-Ready Application Releasing the App Summary Chapter 18: Short Takes Productivity Features Importing Samples Refactoring Generate Coding Styles Live Templates Important Keyboard Shortcuts Summary Appendix A: Java Refresher A Brief History Editions Setup Writing, Compiling, and Running Syntax A Typical Java Program Compilation Unit Comments Statements Keywords Identifiers Methods Packages and Imports Program Entry Point Data Types Overflow Casting Strongly and Statically Typed Reference Types Stack and Heap Constants Operators Assignment Arithmetic Unary Equality and Relational Logical Operators Loops and Branches If and Switch Statements Switch Statement While Loop For-Loop Simple Application of Control Structures Arrays Array Creation Managing Arrays Using the Enhanced for-loop More on Arrays Reference Types Classes Inheritance Constructors Overloading Overriding Strings String Creation Strings Are Immutable Why Can’t We Modify Strings Comparing Strings Common Usage Exceptions Index "Build and deploy your Java-based Android apps using the popular and efficient Android Studio 4 suite of tools, an integrated development environment (IDE) for today's Android developers. With this book, you'll learn the latest and most productive tools in the Android tools ecosystem, ensuring quick Android app development and minimal effort on your part. Among these tools, you'll use the new Android Studio 4 features, including an upgraded CPU profiler UI, a new build speed window, the multi-preview feature, and the live layout inspector. After reading and using this book, you'll be able to efficiently build complete Java-based Android apps that run on any Android smartphone, tablet, smart watch and more. You'll also be able to publish those apps and sell them online and in the Google Play store. You will: Use Android Studio 4 to quickly and confidently build your first Android apps ; Build an Android user interface using activities and layouts, event handling, images, menus, and the action bar ; Work with new tools in Android Studio 4: Jetpack compose support, a smart editor for ProGuard rules, a new motion layout editor, a new Android Gradle plugin, and a fragment wizard with new fragment templates ; Integrate data with data persistence Access the cloud."--Publisher's description