How to show a soft-keyboard when EditText is selected?
I tried using the accepted answer here but this does not work for me!
开发者_高级运维android - show soft keyboard on demand
Any advice is appreciated :)
how about this:
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
This line of code (which seems so obvious now) did the trick:
editText.clearFocus();
精彩评论