Home > Resources > Development Tools > IDE Setup & Tools

Connecting Your Fire Tablet for Testing

Introduction

After you've created your Fire tablet app, you can use Android Debug Bridge (ADB) to connect your Fire tablet to a development computer for testing and debugging. For more information and instructions on using ADB, see Android Debug Bridge.

Prerequisites

For information about setting up your development computer and installing the SDK packages, see Setting Up Your Development Environment.

Windows users who previously connected a Fire tablet without first enabling ADB: Take the following steps to remove the USB device driver and force re-installation of the driver.

  1. Connect your Fire tablet to the USB port on your development computer.
  2. On the development computer, from the Start menu, right-click Computer, and then click Manage.
  3. In the left pane, under Computer Management, expand System Tools, and then click Device Manager.
  4. In the right pane, expand Portable Devices.
  5. Right-click the device and then click Properties.
  6. In the Properties window, on the Driver tab, click Uninstall, and then Confirm.
  7. Unplug your Fire tablet from your computer.

Installing the USB Driver for Windows

Perform the following steps if your development computer runs Windows.

If you installed the Fire Phone SDK Addon, as described in Setting Up Your Development Environment, the USB driver for Fire tablets and Fire phone has already been downloaded. If you did not follow that procedure, do the following to download the USB driver :

  1. Start Android SDK Manager.
  2. In the Android SDK Manager window, from the Tools menu, click Manage Add-on Sites.
  3. In the Add-on Sites dialog box, click the User Defined Sites tab, and then click New.
  4. In the Add Add-on Site URL dialog box, enter the following URL:
    https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml
    
  5. Click OK and then Close. Wait for the Android SDK Manager to refresh, as indicated by the progress bar.
  6. Expand Extras and click Amazon Kindle Fire USB Driver.
  7. Click Install n Packages.
  8. In the Choose Packages to Install dialog box, accept the license agreements for the packages, and then click Install.

In your Android SDK directory, at \extras\amazon\kindle_fire_usb_driver, run KindleDrivers.exe, and then follow the instructions on the screen.

Connecting Your Tablet

Enable ADB on your Fire tablet by doing the following.

Note: The following instructions do not apply to Kindle Fire (1st Generation), where ADB is enabled by default.

  1. On your Fire tablet, go to Settings.
  2. On a 4th generation Fire tablet, tap Device Options, then Developer Options. - or - On a 3rd generation Kindle Fire tablet, tap Device, then Developer Options. - or - On a 2nd generation Kindle Fire tablet, tap Security.
    Note: If Developer Options are hidden on your tablet, tap the serial number on the Device Options (4th generation) or Device (3rd generation) screen seven times, to reveal the Developer Options menu.
  3. Set Enable ADB to On, and then accept the pop-up warning message. Note: As a security precaution, you should set Enable ADB to Off when you are not trying to connect the tablet to your development computer.

Windows

Perform the following steps if your development computer runs Windows.

  1. Connect your Fire tablet to a USB port on your development computer.
  2. In the Allow USB debugging? dialog, on the tablet, tap OK.
  3. From Start, click Control Panel, and then select Device Manager.
  4. In Device Manager, under Fire, verify that the device appears as Android Composite ADB Interface.

If the serial number does not appear after running adb devices, do the following:

  1. Change directory to your Android SDK tools directory.
  2. Run the following command:
    android update adb
  3. Change directory back to your Android SDK platform-tools directory.
  4. Run the following commands:
    adb kill-server
    adb start-server
    adb devices
    

Mac OS X

Perform the following steps if your development computer runs OS X.

  1. Connect your Fire tablet to a USB port on your development computer.
  2. In the Allow USB debugging? dialog, on the tablet, tap OK.
  3. Open a terminal shell and navigate to your Android SDK tools directory.
  4. Run the following command to update ADB.
    ./android update adb
  5. In the terminal shell, navigate to your Android SDK platform-tools directory.
  6. Run the following commands and confirm that the serial number for your Kindle Fire tablet appears in the list of devices.
    ./adb kill-server
    ./adb start-server
    ./adb devices

Note: For either Windows or OS X, if your Fire tablet is still not detected, you may need to reboot your development computer or log out and back in for the changes to take effect.

Next Steps

Now that your Fire tablet is connected to your development computer, you can test an app on the tablet. For more information, see Running Your App on a Fire Tablet.