Head First: Android Development
Dawn Griffiths
David Griffiths
Beijing Cambridge Farnham Kln Sebastopol Tokyo
To our friends and family. Thank you so much for all your love and support.
Special Upgrade Offer
If you purchased this ebook directly from oreilly.com, you have the following benefits:
- DRM-free ebooks use your ebooks across devices without restrictions or limitations
- Multiple formats use on your laptop, tablet, or phone
- Lifetime access, with free updates
- Dropbox syncing your files, anywhere
If you purchased this ebook from another retailer, you can upgrade your ebook to take advantage of all these benefits for just $4.99. to access your ebook upgrade.
Please note that upgrade offers are not available from sample content.
Authors of Head First Android Development
Dawn Griffiths started life as a mathematician at a top UK university, where she was awarded a first-class honors degree in mathematics. She went on to pursue a career in software development and has 20 years experience working in the IT industry.
Before writing Head First Android Development, Dawn wrote three other Head First books ( Head First Statistics , Head First 2D Geometry and Head First C ) and has also worked on a host of other books in the series.
When Dawns not working on Head First books, youll find her honing her Tai Chi skills, reading, running, making bobbin lace, or cooking. She particularly enjoys spending time with her wonderful husband, David.
David Griffiths began programming at age 12, when he saw a documentary on the work of Seymour Papert. At age 15, he wrote an implementation of Paperts computer language LOGO. After studying pure mathematics at university, he began writing code for computers and magazine articles for humans. Hes worked as an agile coach, a developer, and a garage attendant, but not in that order. He can write code in over 10 languages and prose in just one, and when not writing, coding, or coaching, he spends much of his spare time traveling with his lovely wife and coauthor Dawn.
Before writing Head First Android Development , David wrote three other Head First books: Head First Rails, Head First Programming and Head First C .
You can follow us on Twitter at https://twitter.com/HeadFirstDroid .
How to Use This Book: Intro
Note
In this section, we answer the burning question: So why DID they put that in a book on Android?
Who is this book for?
If you can answer yes to all of these:
- Do you already know how to program in Java?
- Do you want to master Android app development, create the next big thing in software, make a small fortune, and retire to your own private island?
Note
OK, maybe that ones a little far-fetched. But, you gotta start somewhere, right?
- Do you prefer actually doing things and applying the stuff you learn over listening to someone in a lecture rattle on for hours on end?
this book is for you.
Who should probably back away from this book?
If you can answer yes to any of these:
- Are you looking for a quick introduction or reference book to developing Android apps?
- Would you rather have your toenails pulled out by 15 screaming monkeys than learn something new? Do you believe an Android book should cover everything , especially all the obscure stuff youll never use, and if it bores the reader to tears in the process, then so much the better?
this book is not for you.
Note
[Note from Marketing: this book is for anyone with a credit card... well accept PayPal, too.]
We know what youre thinking
How can this be a serious book on developing Android apps?
Whats with all the graphics?
Can I actually learn it this way?
We know what your brain is thinking
Your brain craves novelty. Its always searching, scanning, waiting for something unusual. It was built that way, and it helps you stay alive.
So what does your brain do with all the routine, ordinary, normal things you encounter? Everything it can to stop them from interfering with the brains real job recording things that matter . It doesnt bother saving the boring things; they never make it past the this is obviously not important filter.
How does your brain know whats important? Suppose youre out for a day hike and a tiger jumps in front of you what happens inside your head and body?
Neurons fire. Emotions crank up. Chemicals surge .
And thats how your brain knows...
This must be important! Dont forget it!
But imagine youre at home or in a library. Its a safe, warm, tiger-free zone. Youre studying. Getting ready for an exam. Or trying to learn some tough technical topic your boss thinks will take a week, ten days at the most.
Just one problem. Your brains trying to do you a big favor. Its trying to make sure that this obviously unimportant content doesnt clutter up scarce resources. Resources that are better spent storing the really big things. Like tigers. Like the danger of fire. Like how you should never have posted those party photos on your Facebook page. And theres no simple way to tell your brain, Hey brain, thank you very much, but no matter how dull this book is, and how little Im registering on the emotional Richter scale right now, I really do want you to keep this stuff around.
We think of a Head First reader as a learner .
So what does it take to learn something? First, you have to get it, then make sure you dont forget it. Its not about pushing facts into your head. Based on the latest research in cognitive science, neurobiology, and educational psychology, learning takes a lot more than text on a page. We know what turns your brain on.
Some of the Head First learning principles:
Make it visual. Images are far more memorable than words alone, and make learning much more effective (up to 89% improvement in recall and transfer studies). It also makes things more understandable.