How to request android keyboard to be displayed

Does anyone know how to request the android keyboard to be displayed, then listen to what keys are being pressed? (eg so they can type in their name).

How do you wana use it? A bit more details would be good :wink:

Do you wana start it out of an activity ?
If so check out this link:

android developer com

SoftKeyBoard Class


public void showSoftKeyboard(View view) { //start the methode, give it a view it can play with
if (view.requestFocus()) { //focus this view you gave
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); //get the input manager into a field
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); //show softKeyboard

If this answer helped you dont forgett to rate this post :wink:

1 Like