The appendixes of my book provide detailed directions on how to configure an environment for Android development on Windows, Mac OS X, or Linux systems. They show how to install JDK 1.8, but I'm pretty sure JDK 1.5 would work fine too if there's some reason you don't want to install JDK 1.8.
In short, the steps are...
1. Download and install the source code for this book from murach.com
2. Download and install the
Java SE JDK (we recommend 1.8, but you can use an older version if you want)
3. Download and install Android Studio
4. Start Android Studio and use the SDK Manager to install the Android 4.1.2 SDK (the version of Android that most of the apps in this book target)
5. Configure an Android device for
testing (turn on developer options, turn on USB debugging, and connect to your computer with a USB cable)
I hope this answers your question!