Gentlemen, Start Your Emulators

For most of this book I’ve been telling you to target your applications to version 4.1 of the Android platform (also known as Jelly Bean). However, there’s one little problem with this advice: your programs may not actually run on those older versions. The only reliable way of telling whether it will work is to test it. And short of buying one of every Android phone and tablet on the market, the best way to test your program on different Android versions and screen sizes is to try it in the emulator. To do this, you’ll need to set up several virtual devices with different versions and sizes.

Emulators “R” Us

Including the Nexus 5 AVD created for you in Running on the Android Emulator, I recommend that you create ...

Get Hello, Android, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.