public static void toggleKeyboard ( ) { InputMethodManager imm = ( ( InputMethodManager ) QuickUtils . getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ) ; imm . toggleSoftInput ( 0 , 0 ) ; }
Toggles the SoftKeyboard Input be careful where you call this from as if you want to hide the keyboard and its already hidden it will be shown