I am currently developing a simple library for making games on Android. I am almost done and only want to add a few more features. One feature I would like to add is a method that would show / hide the onscreen-keyboard (soft keyboard). I want to get whatever has been typed and return it using another method.
My codebase consists of an Activity that gets launched and a SurfaceView that does the rendering and touch input (and some other classes for the gameloop, sprites, sound and so on). As this is supposed to be a small library I don't want to mess with the XML.
How would I go on about showing+hiding/toggling the keyboard and receiving it's inputs?