更新时间:2021-07-23 14:47:43
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
Why Android?
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. The First App
How Java and Android work together
The development environment
What makes an Android app
Our first Android app
FAQ
Summary
Chapter 2. Java – First Contact
Examining the log output
Improving our app and deploying again
Meet Java
Chapter 3. Exploring Android Studio
The Android Studio guided tour
Chapter 4. Designing Layouts
Exploring Android UI design
Structure of a UI design
Chapter 5. Real-World Layouts
Building a real-world UI
Chapter 6. The Life and Times of an Android App
Introduction to the Android lifecycle
A simplified explanation of the Android lifecycle
Lifecycle phases – what we need to know
Lifecycle phases – what we need to do
The lifecycle demonstration app
The structure of Java code – revisited
Chapter 7. Coding in Java Part 1 – Variables Decisions and Loops
Java is everywhere
Syntax and jargon
More code comments
Storing and using data with variables
Changing values in variables with operators
Expressing yourself demo app
Decisions
Repeating code with loops
Chapter 8. Coding in Java Part 2 – Methods
Methods revisited
Scope and variables revisited
Further reading
Chapter 9. Object-Oriented Programming
Important memory management warning
Introducing OOP
Taking a look at the code for a class
The basic classes mini app
Remember that encapsulation thing?
Encapsulation and static methods mini app
OOP and inheritance
The inheritance mini app
Polymorphism
Chapter 10. Everything's a Class
All Android UI elements are classes too
Chapter 11. Widget Mania
Exploring Android UI objects
Exploring the palette
Android permissions and Marshmallows
The Widget exploration mini app
Chapter 12. Having a Dialogue with the User
Dialog windows
About the Note To Self app
Building the project and gathering resources
Coding the Note class
Implementing the dialog designs
Coding the dialog boxes
Chapter 13. Handling and Displaying Arrays of Data
A random diversion
Handling large amount of data with arrays
A simple array example mini app
Getting dynamic with arrays
Entering the nth dimension with arrays
ArrayLists