If you can see this blog post, then I believe you have consulted a lot about the hidden soft keyboard and other articles, but also believe that you and I do not find an effective way to solve the problem.
The problem is that I opened a soft keyboard in someone else's activity interface, and when the activity finished, the soft keyboard was not hidden in my interface.
I read this man's blog http://blog.csdn.net/h7870181/article/details/8332991
Can't hide at all ~
So, another article: http://www.cnblogs.com/brainy/archive/2012/05/24/2516923.html
A big brother in the following thread gave the answer.
That is, first add GetWindow () in the OnCreate () method. Setsoftinputmode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
used in the Current Activity ((Inputmethodmanager) Getsystemservice (Input_method_service)). Hidesoftinputfromwindow ( WidgetSearchActivity.this.getCurrentFocus (). Getwindowtoken (), inputmethodmanager.hide_not_always); that can hide the pop-up soft keyboard, no need to change the layout of the ~
If this post solves your problem, please don't be stingy, thank you.
here is [email protected], welcome to Exchange.
I original works, reproduced please indicate the source.
Android Soft Keyboard hidden