8 Comments

Summary:

Are those puny hardware buttons or the quirky on-screen QWERTY not quite cutting it for you in Android? As it turns out, Google’s mobile platform supports USB keyboards natively. Armed with the right cables, you can add a full-sized USB keyboard to your Android phone.

android-usb-keyboard

Are those puny hardware buttons or the quirky on-screen QWERTY keyboards not quite cutting it for you in Android? As it turns out, Google’s mobile platform appears to support USB keyboards natively on some stock builds. Of course, you can’t simply attach a big, honking external keyboard to your phone and expect it to work. You have to enable USB-OTG, or USB On The Go host mode, and have the proper USB cable, says MAKE. Luckily, Chris Paget’s blog shares the steps to make this happen. The whole process reminds me of a similar project that modders got into back in 2008 with the Nokia N810 Internet Tablet. I was scared of the soldering then, and sadly, I’m no closer to having a comfort level.

Chris makes the magic happen on his Droid with three parts: a car charging cable, a micro USB cable and a USB extender cable — all pretty basic parts. The charging cable is only needed for the end piece — it becomes a micro USB dongle that tells Android there’s a USB device to install, which enables USB-OTG mode for the current session. The other two cables are needed for their ends and get spliced together: one end plugs into the handset and the other accepts a male USB wire from a keyboard. Maybe I could handle the wee bit of soldering on this one since it’s only needed to short out one resistor on the micro USB dongle. I think I’ll just search for a pre-made cable to do the trick.

Armed with the proper pieces, it’s just a matter of booting up Android with the dongle in the phone. Once the handset sees the dongle and continues to boot, you simply remove the dongle and plug in a USB keyboard with the spliced cable. Android sees the keyboard, and as Chris says, “It Just Works.” A similar process was replicated and tested successfully on an HTC Hero as well, so odds are decent that many other Android phones can use USB-OTG to host a keyboard. No additional drivers were needed for either the Droid or the Hero, so keyboard support has to be built within Android itself. Of course, that means it could go away in any future Android updates, but for now, you can enjoy a full-sized keyboard on your pint-sized phone.

Image courtesy of Andrew de Quincey

Related research from GigaOM Pro (sub req’d):

Android Begins Showing Its Disruptive Promise

You’re subscribed! If you like, you can update your settings

  1. Does Android support the HID bluetooth profile? Seems like a BT keyboard would be the simpler way to go here.

  2. Hi, I think your work is awesome.

    I thinking about connect a game pad (NES like) to the Hero and searching for info I end in your post.

    Do you think is possible to connect a game pad to the USB port on the Hero?

    I’ll appreciate so much if you can guide me or give me some clues.

    Thanks and regards.

  3. Fernando H. Rosa Friday, May 21, 2010

    Tony M.
    I think that the isn’t using a USB keyboard in an Android device, it is just fun to see this.

  4. Brendan Scott Tuesday, June 1, 2010

    Can you explain why the car charger is seen as a dongle which will trigger USB-OTG but the keyboard itself isn’t?

  5. Couldn’t you just buy a USB adapter with two female ends and use the micro to full USB cable typically supplied with the phone? It seems that it would but significantly easier than trying to solder multiple cables together. And you can pick up an USB F to F adapter online for under $5 many places.

    1. I wonder if the f to f does work….

  6. This is pretty cool. Bluetooth would be simpler, but Android does NOT support HID… not yet, anyway. It supports SPP, for which there is a total of ONE keyboard available. I want to use my trusty old Thinkoutside Stowaway, but, so far, no luck with 3rd party software (blueinputandroid, bluekeyboard JP are what I have found – neither works for my phone/keyboard combo). So maybe I’ll try this…

  7. I have an Elocity A7 tablet. It has full sized USB port, funny thing is a USB keyboard just works fine. I did not have to use any special roms or work a rounds to make this happen. I’m using the stock android 2.2.

    Note : USB game pads do not work

Comments have been disabled for this post