Java
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
and for hiding the keyboard
Java
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(singleedittext.getWindowToken(),0);
Have a nice day!

I hope you have a nice day! Very good article, well written and very thought out. I am looking forward to reading more of your posts in the future.teddy bears for babies
ReplyDeleteWell, I have used the same code but still I am unable to fire the event. I have called that statements on button click event.
ReplyDelete