java - android soft keyboard not showing on button click -
this question has answer here:
- close/hide android soft keyboard 63 answers
here method on buttonclick not working... have tried many things nothing seems work
public void open_keyboard(view view) { message.msg_l(this, "keyboard clicked"); inputmethodmanager imm = (inputmethodmanager) getsystemservice(context.input_method_service); imm.showsoftinput(view, inputmethodmanager.show_implicit); }
please try this,
inputmethodmanager imm = (inputmethodmanager) getsystemservice(context.input_method_service); imm.togglesoftinput(inputmethodmanager.show_forced,0);