Can an android emulate a HID device?

I tried to create an application that would allow me to android emulate a hardware device.
I.E. general keyboard, general mouse.

I could connect my Android (HTC) to a computer and program it to use the software keyboard as the hardware keyboard of the computer.

I have no direction how to do this.

I only want to connect USB (not bluetooth). That the computer worked before installation before installation 0. And most devices will work in Dos mode.

+4
source share
3 answers

You can grab the app and see the code: http://code.google.com/p/androhid/

Small jewels like this radiance in the middle of the ocean are worthless commercial applications.

+5
source

"For the computer to work before setting" 0 ",

I have a Sony Ericsson K750i and it can behave like a HID device via Bluetooth. A mouse and / or keyboard are all that you like. (This is the default factory default base function) The only installation I had to do was install the drivers for the Bluetooth device on the laptop. Therefore, we can say that installation was not required, since you are still installing drivers for bluetooth.

There were some default profiles for different applications (media player, windows, image viewer, etc.), but you can also create your own profiles by assigning any mouse or keyboard action to any physical phone keys.

It would be nice to see this exact functionality for Android. I was amazed that by default it does not. It's a shame.

When I search for the Android Android remote control on the Internet, I can find everything about small physical keyboards for Android, or the solution uses wifi, which requires damn special software to run on the computer at the same time.

+2
source

Some quick searches indicate several examples of connecting the keyboard to an Android device, but I think that in order for the Android device to pretend that its USB HID (device for the user interface) will require the creation of a new firmware. Also, there is no Android SDK API to control the USB interface.

0
source

All Articles