3rd edition. — Packt Publishing, 2021. — 743 p. — ISBN 978-1-80056-343-8.
Build in-depth, full-featured Android apps starting from zero programming experience
Key FeaturesKick-start your Android programming career or just have fun publishing apps to the Google Play marketplace
Get a first principles introduction to Java using Android, allowing you to start building your own applications from scratch
Learn by example by building four real-world apps and dozens of mini apps throughout the book
Do you want to make a career in programming but don’t know where to start? Do you have a great idea for an app but don't know how to make it a reality? Or are you worried that you’ll have to learn Java programming to become an Android developer? Look no further! This new and expanded third edition of Android Programming for Beginners will be your guide to creating Android applications from scratch.
The book starts by introducing you to all the fundamental concepts of programming in an Android context, from the basics of Java to working with the Android API. You’ll learn with the help of examples that use up-to-date API classes and are created from within Android Studio, the official Android development environment that helps supercharge your application development process. After a crash course on the key programming concepts, you’ll explore Android programming and get to grips with creating applications with a professional-standard UI using fragments and storing user's data with SQLite. You’ll also find out how you can make your apps multilingual, draw on the screen with a finger, and work with graphics, sound, and animations.
By the end of this Android programming book, you'll be ready to start building your own custom applications in Android and Java.
What you will learnMaster the fundamentals of coding Java for Android
Install and set up your Android development environment
Build functional user interfaces with the Android Studio visual designer
Add user interaction, data captures, sound, and animation to your apps
Manage your apps' data using the built-in Android SQLite database
Explore the design patterns used by professionals to build top-grade applications
Build real Android applications that you can deploy to the Google Play marketplace
Who This Book Is ForThis book is for you if you are completely new to Java, Android, or programming and want to get started with Android application development. If you have experience of using Java on Android, this book will serve as a refresher to help you advance your knowledge and make progress through the early projects.
Beginning Android and Java
First Contact: Java, XML, and the UI Designer
Exploring Android Studio and the Project Structure
Getting Started with Layouts and Material Design
Beautiful Layouts with CardView and ScrollView
The Android Lifecycle
Java Variables, Operators, and Expressions
Java Decisions and Loops
Learning Java Methods
Object-Oriented Programming
More Object-Oriented Programming
The Stack, the Heap, and the Garbage Collector
Anonymous Classes – Bringing Android Widgets to Life
Android Dialog Windows
Arrays, Maps, and Random Numbers
Adapters and Recyclers
Data Persistence and Sharing
Localization
Animations and Interpolations
Drawing Graphics
Threads and Starting the Live Drawing App
Particle Systems and Handling Screen Touches
Supporting Different Versions of Android, Sound Effects, and Spinner Widget
Design Patterns, Multiple Layouts, and Fragments
Building a Simple Image Gallery App
Advanced UI with Navigation Drawer and Fragment
Android Databases
A Quick Chat before You Go