public static void showKeyboard ( Context context , EditText target ) { if ( context == null || target == null ) { return ; } InputMethodManager imm = getInputMethodManager ( context ) ; imm . showSoftInput ( target , InputMethodManager . SHOW_IMPLICIT ) ; }
Show keyboard and focus to given EditText