The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Tutorial #1 - Installing the Tools

Now, let us get you set up with the pieces and parts necessary to build an Android app.

NOTE: The instructions presented here are accurate as of the time of this writing. However, the tools change rapidly, and so these instructions may be out of date by the time you read this. Please refer to the Android Developers Web site for current instructions, using this as a base guideline of what to expect.

But First, Some Notes About Android’s Emulator

The Android tools include an emulator, a piece of software that pretends to be an Android device. This is very useful for development — not only does it mean you can get started on Android without a device, but the emulator can help test device configurations that you do not own.

There are two types of emulator: x86 and ARM. These are the two major types of CPUs used for Android devices. You really want to be able to use the x86 emulator, as the ARM emulator is extremely slow.

However, to use the x86 emulator, your development machine must have things set up properly first. Linux users need KVM, while Mac and Windows users need the “Intel Hardware Accelerated Execution Manager” (a.k.a., HAXM).

Also, this only works for certain CPU architectures, ones that support virtualization in hardware:

Those virtualization extensions must also be enabled in your device’s BIOS, and other OS-specific modifications may be required.

Also, at least for newer API levels, your CPU must support SSSE3 extensions, though the details of this requirement are not documented as of October 2017.

Part of the Android Studio installation process will try to set you up to be able to use the x86 emulator. Make note of any messages that you see in the installation wizard regarding “HAXM” (or, if you are running Linux, KVM), as those will be important later.

Step #1: Checking Your Hardware

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

Step #2: Setting Up Java and 32-Bit Linux Support

The preview of this section will not appear here for a while, due to a time machine mishap.

Step #3: Install Android Studio

The preview of this section was lost in the sofa cushions.

Step #4: Install the SDKs and Add-Ons

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

In Our Next Episode…

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.