As for Android, I think you should look at this answer. It does not give a complete answer to this question, but it really suits you.
To make a long story short, you must have an EditText or some other control that can accept keyboard input, request focus on it and in the onFocus call to the setSoftInputMethod handler.
source share