When I first tried to test an Android app I’ve been developing on Amazon.com’s marvelous Kindle Fire tablet, I couldn’t get Eclipse, which was running on Ubuntu, to connect to the tablet. A quick Google search told me that it should work and I even found directions on how to make it work. Frustratingly, none of the directions I found and followed got Eclipse and the tablet talking to each other. The two began talking with each other only after I created a new set of directions from elements of others’ directions. This is what I did.
1. I added the “adb” program to my system path variable by editing my “~/.bashrc” file. There are multiple ways to do this and I leave it up to my readers to choose the best way for their systems.
2. On the Kindle Fire I went into Settings and I then toggled “Allow Installation of Applications From Unknown Sources” on the Device screen to “Yes”.
WARNING: Copying and pasting from the web to the text editor seems to mess up quotation marks when editing files in steps 3 and 4. Also, copying and pasting from my text editor to my blog editor messes up quotation marks. The quotation marks in the lines in steps 3 and 4 are wrong as they appear. You should type them in your text editor yourself to avoid problems.
3. I added “0x1949” and “0x0006”, on separate lines without the quotes, to the file named “~/.android/adb_usb.ini”.
4. I added “SUBSYSTEM==”usb”,SYSFS{idVendor}==”1949″,MODE=”0666″, GROUP=”plugdev””, minus the outermost quotation marks, to the file “/etc/udev/rules.d/51-android.rules”. This file didn’t exist for me, so I created it.
5. I used CHMOD to make the file “51-android.rules” accessible from other accounts on my system.
6. I rebooted. NOTE: I had to completely shutdown and reboot my PC to make things work. A hot reboot wasn’t sufficient for me.
7. I made sure everything worked by debugging my app on the tablet from inside Eclipse.
I hope these directions spare my readers the frustration I experienced.