
The Android Robot, downloaded from <http://commons.wikimedia.org/wiki/File:Android_robot.svg> courtesy of Google.com via the Creative Commons Attribution 3.0 Unported license
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 “0×1949″ and “0×0006″, 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.
Very important post. Thanks
does not work for me.
I have android sdk revision 12, kindle fire version 6.2.
Is the syntax for 51-android.rules regarding == and = correct?
The syntax for 51-android.rules regarding == and = is correct according to Google. Please see
http://developer.android.com/guide/developing/device.html
In fact, this was not a total failure. I noticed that one problem was
“0×1949″ and “0×0006″, it should be “0×1949″ and “0×0006″
now after restarting adb I see:
List of devices attached
???????????? no permissions
Any ideas?
Only two ideas at present.
1. Are you cutting and pasting between the web and your text editor? I noticed that for some reason the quotation marks were getting messed up when I used cut and paste. The messed up quotation marks mattered for my installation. Rereading my blog post, I see that the quotation marks never did appear right on my blog. I’ll add a warning about the quotation marks to my post. Thanks for calling this to my attention.
2. Also, I was unable to debug on my Kindle until I completely shutdown and restarted my PC.
If you need more help, let me know via another comment and I’ll try to help you.
Success!! Thanks a million.
Yes, cut/paste was the problem. Interesting that scite works fine, the problem was gedit.
People, be aware!
Your welcome.