HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
In just 24 sessions of one hour or less, learn how to build powerful apps for the world’s most popular mobile platform: Android 4.3. Using this book’s straightforward, step-by-step approach, you’ll build complete Android 4.3 apps from the ground up as you master the skills you need to design, develop, test, and publish powerful solutions. Extensively updated for Android’s newest features and tools, every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success!
Highlights of this new Third Edition include:
Register your book at informit.com/register to gain access to the Bonus KitKat chapter online.
Learn how to…
Download free code files for Android Application Development in 24 Hours here
Please visit the blog associated with this title at http://www.talkingandroid.com
Android Media Basics: Images, Audio, and Video
Download the sample pages (includes Chapter 21 and Index)
Preface xiv
New in the Third Edition xiv
Who This Book Is For xv
How This Book Is Organized xv
Part I: Getting Started
HOUR 1: Getting Started: Creating a Simple App 3
Setting Up Your Development Environment 3
Instantly Creating a Simple App 6
Understanding the Java Code and XML Layout 10
Running the App 11
Personalizing the App 13
Summary 17
Q&A 17
Workshop 18
Exercise 18
HOUR 2: Understanding an Android Activity 19
Understanding an Activity 19
Starting an Activity 20
Passing Information Between Activities 28
Understanding Intents 34
Understanding the Activity Lifecycle 38
Summary 41
Q&A 41
Workshop 42
Exercises 42
HOUR 3: Exploring an Android Project and Resources 43
Exploring the Android Project Files 43
Understanding Common Resources 47
Summary 57
Q&A 57
Workshop 57
Exercises 58
HOUR 4: Not Just Smartphones: Supporting Tablets, TVs, and More 59
A Brief History of Android 59
Handling Device Display and Orientation 60
Device Features 67
Platform Versions and the Compatibility Package 68
Launching Apps on a Device 72
Summary 74
Q&A 74
Workshop 75
Exercises 75
Part II: User Interface
HOUR 5: Using Layouts 79
Getting Started with Layouts 79
More Layout Basics with LinearLayout 84
Laying Out Child Views 86
FrameLayout 89
RelativeLayout 89
Summary 91
Q&A 92
Workshop 92
Exercises 93
HOUR 6: Working with Basic UI Controls 95
Setting Up the Demo App &nb