Skip to content Skip to sidebar Skip to footer

Soft Keyboard Won't Appear

Hello I want to show up the soft keyboard whenever I tap on the textfield. the application of mine works fine whenever u login for the first time but when i logout from the app

Solution 1:

You can show the soft keyboard focused on a specific EditText like this.

EditTexteditText= (EditText) findViewById(R.id.edit);
InputMethodManagerimm= (InputMethodManager) getSystemService(
    Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT);

Solution 2:

I have ran into this many a time. Please resist to force the keyboard to show. Any device that has a physical hard keyboard will not show in many different kinds of views. Try running your application on a devices that are not connected to a bluetooth keyboard and does not have a hard keyboard.

Solution 3:

EditText should handle this for you, post some of your code and maybe we can help figure out why it is not doing so. Or you can force the soft keyboard to show by doing something like this:

InputMethodManagerinputMgr= (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
    inputMgr.showSoftInput(yourEditText, 0);

If you put that inside the onClick() method for an OnClickListener that you set on your EditText then it will force the keyboard open whenever the EditText is clicked.

Post a Comment for "Soft Keyboard Won't Appear"