[android] How do I connect to Kindle Fire for development?


Answers

Linux uses a different way to set up the device. According to Using Hardware Devices, you need to set up your Linux system as follows:

  1. Edit /etc/udev/rules.d/51-android.rules as root, and add the following line (create this file if it does not exist):

    SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666"
    
  2. Change the permission of this file by executing the following command as root:

    chmod a+r /etc/udev/rules.d/51-android.rules
    
  3. Reload the rules by executing the following command as root:

    udevadm control --reload-rules
    
  4. Run these commands to restart adb:

    adb kill-server
    adb devices
    

If everything is ok, you will see your Kindle Fire listed as a device.

Question

What do I need to do to use my Kindle Fire for android development? (Specifically for testing my apps on the device.)




Follow the PDF

In eclipse go to android SDK manager, select Tools -> Manage Add-on Sites -> select User Defined sites.

Select New and add the url as http://kindle-sdk.s3.amazonaws.com/addon.xml.

After adding that go to packages->Extras

Download Kindle Fire USB Driver.

Go to android SDK folder->amazon->install the drivers.

Last step: You can see the device at In Device Manager, under Kindle Fire, verify that the device appears as Android Composite ADB Interface.




I use a Mac, this probably works similarly from a Windows box.

First I configured the Kindle Fire to allow sideloaded apps. This isn't the default behavior, you have to click a checkbox in the settings.

From the Fire, I went to the app store and downloaded a DropBox app (free.)

From my dev machine, I registered on the DropBox website (also free.)

This gives you a dropbox folder on your dev box that will be synced automagically to your dropbox folder on the web.

Then, to develop, I compile the app to make a new apk, drag it to the dropbox folder, and use the DropBox app on the Fire fetch the apk file. It loads with the click of a button. It takes about 15 seconds tops to get the apk to the Fire. I don't need any extra cables, etc.




Links