You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Contents<br />
Introduction ......................................................... xii<br />
Welcome to Android ................................................ xiv<br />
Chapter 1 Getting Started with Android ............................ 2<br />
Exploring Android Development Environments ..................... 4<br />
Eclipse (ADT Bundle) ................................................... 4<br />
Android Studio ......................................................... 4<br />
Getting Everything Installed .......................................... 5<br />
Installing Eclipse (ADT Bundle) for OS X, Linux, Windows ............ 5<br />
Installing Android Studio .............................................. 6<br />
Updating the Android SDK ............................................. 7<br />
Configuring Devices .................................................. 9<br />
Virtual Device Emulator ............................................... 9<br />
Working with a Physical Device ....................................... 12<br />
Creating a New Android Project ..................................... 14<br />
Running Your New Project ........................................... 18<br />
Eclipse .................................................................. 18<br />
Android Studio ........................................................ 19<br />
Troubleshooting the Emulator ...................................... 21<br />
Wrapping Up ......................................................... 21<br />
Chapter 2 Exploring the Application Basics ........................ 22<br />
The Files .............................................................. 24<br />
The Manifest ........................................................... 24<br />
The Activity Class .................................................... 25<br />
Watching the Activity in Action ....................................... 25<br />
Implementing Your Own Activity ..................................... 26<br />
The Life and Times of an Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />
Bonus Round—Data Retention Methods .............................. 35<br />
The Intent Class ...................................................... 37<br />
Manifest Registration .................................................. 37<br />
Adding an Intent ...................................................... 38<br />
Listening for Intents at Runtime ...................................... 39<br />
Moving Your Own Data ................................................ 43<br />
The Application Class ................................................ 45<br />
vi<br />
Contents