Running on a Device

It is fun to interact with your app on an emulator. It is even more fun to interact with your app on physical Android device. In this section, you will set up your system, device, and application to get GeoQuiz running on your hardware device.

First, plug the device into your computer. If you are developing on a Mac, your system should recognize the device right away. On Windows, you may need to install the adb (Android Debug Bridge) driver. If Windows cannot find the adb driver, then download one from the device manufacturer’s website.

Second, enable USB debugging on your Android device. To do this, you need to access the Developer options settings menu, which is not visible by default. To enable developer ...

Get Android Programming: The Big Nerd Ranch Guide, 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.