java - android soft keyboard not showing on button click -


this question has answer here:

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); 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -