Out of curiosity, why were these specific keys chosen to be support on
Android?
And the root question: given the Android input system, what would be
the best method of somehow getting a Bluetooth keyboard to work with
an Android app?
So, if I wanted to add support for keys such as insert / delete /
home / end, would those be added to the list of keycodes?
What I mean by best method: I want all of the various keys (includingthe ones mentioned above, and maybe even control) to work with, say,
ConnectBot (which would also need modifications), and I would like to
do so in a way that's not egregiously terrible.
On Thu, Oct 21, 2010 at 11:16 AM, Dianne Hackborn <hac...@android.com> wrote:
> On Thu, Oct 21, 2010 at 12:42 AM, Hans Nielsen <age...@gmail.com> wrote:
>>
>> So, if I wanted to add support for keys such as insert / delete /
>> home / end, would those be added to the list of keycodes?
>
> Yes they would need to be added. I think there is no need at this point,
> they should be in the next version of the code.
>
>>
>> What I mean by best method: I want all of the various keys (including
>> the ones mentioned above, and maybe even control) to work with, say,
>> ConnectBot (which would also need modifications), and I would like to
>> do so in a way that's not egregiously terrible.
>
> The keyboard should be published as a regular kernel input device, so the
> android framework can open it like a normal input device and dispatch events
> from it to apps like it does other input devices. Not sure what I am
> missing here...?
You need the HID plugin of Bluez installed and that you need to hook
up JNI and other layers.
If you want to use dbus command line arguments, you can use dbus-send
to connect.
Once connected, it will show up as a regular keyboard to the input system.
If you need all types of keyboards to work, there are some HID
specific kernel drivers that need to be switched on in the config.
> --
> Dianne Hackborn
> Android framework engineer
> hac...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-platform?hl=en.
>
Thanks,
Pavan Savoy.
--
--Pavan Savoy
The code is on the p-froyo branch...
HID is not supported (as an official profile) in the Android Froyo
release, though as the Bluez plugin in present you can implement it
easily as shown by the links posted by Pavan.
Thanks
HID device role seems more convincing.