Android's input system is in C++ anyway.
For those that bring NDK up, the generated code runs in a separate thread inside Dalvik, and you have the delay of using UNIX pipes for the events.