The InputAccessLib library facilitates the development of Android applications that can be used with any alternative input method such as keyboards and joysticks. The library also facilitates universal access to Android apps for people with mobility impairments.
For detailed instructions on using the InputAccessLib library visit: http://komodoopenlab.com/tecla/developers/tecla-for-android-developers/