How to programmatically hide Android soft keyboard
private void closeSoftKeyboard()
{
//If using a fragment use getActivity().getCurrentFocus()
View v = this.getCurrentFocus();
// If Soft Keyboard is visible, it will be hide
if (v != null) {