Book description
Learn the Java and Android skills you need to start developing powerful mobile applications with the help of actionable steps
Key Features
- Kick-start your Android programming career or just have fun publishing apps to the Google Play marketplace
- Get a first principles introduction to using Java and Android and prepare to start building your own apps from scratch
- Learn by example by building four real-world apps and dozens of mini apps
Book Description
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 within Android Studio, the official Android development environment that helps supercharge your mobile 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 data with SQLite. This Android Java book also shows you 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 learn
- Understand the fundamentals of coding in 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-world Android applications that you can deploy to the Google Play marketplace
Who this book is for
This Android book is for you if you are completely new to Java, Android, or programming and want to get started with Android app 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 covered in the book.
Table of contents
- Android Programming for Beginners â Third Edition
- Contributors
- About the author
- About the reviewers
- Preface
-
Chapter 1: Beginning Android and Java
- Technical requirements
- What's new in the third edition?
- Why Java and Android?
- The beginner's first stumbling block
- How Java and Android work together
- Setting up Android Studio
- What makes an Android app?
- The structure of Android's Java code
- Building our first Android app
- Deploying the app so far
- Frequently asked questions
- Summary
- Chapter 2: First Contact: Java, XML, and the UI Designer
- Chapter 3: Exploring Android Studio and the Project Structure
-
Chapter 4: Getting Started with Layouts and Material Design
- Technical requirements
- Finding out about Material Design
- Exploring Android UI design
-
Introducing layouts
- Creating and exploring a layout project
- Building a layout with LinearLayout
- Adding a LinearLayout layout type to a project
- Preparing your workspace
- Examining the generated XML
- Adding a TextView to the UI
- Wiring up the UI with the Java code (Part 1)
- Adding layouts within layouts
- Making the layout look pretty
- Wiring up the UI with Java code (Part 2)
- Building a precise UI with ConstraintLayout
- Laying out data with TableLayout
- Linking back to the main menu
- Summary
- Chapter 5: Beautiful Layouts with CardView and ScrollView
- Chapter 6: The Android Lifecycle
- Chapter 7: Java Variables, Operators, and Expressions
- Chapter 8: Java Decisions and Loops
- Chapter 9: Learning Java Methods
- Chapter 10: Object-Oriented Programming
- Chapter 11: More Object-Oriented Programming
- Chapter 12: The Stack, the Heap, and the Garbage Collector
-
Chapter 13: Anonymous Classes â Bringing Android Widgets to Life
- Technical requirements
- Declaring and initializing the objects
- Creating UI widgets from pure Java without XML
- Exploring the palette â part 1
- Anonymous classes
- Exploring the palette and more anonymous classes â part 2
- The Widget Exploration app
- Using WebView
- Running the Widget Exploration app
- Summary
- Chapter 14: Android Dialog Windows
-
Chapter 15: Arrays, Maps, and Random Numbers
- Technical requirements
- A random diversion
- Handling large amounts of data with arrays
- Simple array example mini-app
- Getting dynamic with arrays
- Entering the nth dimension with arrays
- ArrayList
- Arrays and ArrayList instances are polymorphic
- More Java collections â meet the Java HashMap
- The Note to Self app
- Frequently asked questions
- Summary
- Chapter 16: Adapters and Recyclers
- Chapter 17: Data Persistence and Sharing
- Chapter 18: Localization
- Chapter 19: Animations and Interpolations
- Chapter 20: Drawing Graphics
- Chapter 21: Threads and Starting the Live Drawing App
- Chapter 22: Particle Systems and Handling Screen Touches
- Chapter 23: Supporting Different Versions of Android, Sound Effects, and Spinner Widget
- Chapter 24: Design Patterns, Multiple Layouts, and Fragments
- Chapter 25: Building a Simple Image Gallery App
- Chapter 26: Advanced UI with Navigation Drawer and Fragment
- Chapter 27: Android Databases
- Chapter 28: A Quick Chat before You Go
- Other Books You May Enjoy
Product information
- Title: Android Programming for Beginners - Third Edition
- Author(s):
- Release date: April 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800563438
You might also like
book
Android Programming for Beginners - Second Edition
Learn all the Java and Android skills you need to start making powerful mobile applications with …
book
Android Programming with Kotlin for Beginners
Build smart looking Kotlin apps with UI and functionality for the Android platform Key Features Start …
book
Head First Android Development, 2nd Edition
What will you learn from this book? If you have an idea for a killer Android …
book
Head First Android Development, 3rd Edition
What will you learn from this book? If you have an idea for a killer Android …