Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

close keyboard android

public static void hideSoftKeyboard(Activity activity) {
    InputMethodManager inputMethodManager = 
        (InputMethodManager) activity.getSystemService(
            Activity.INPUT_METHOD_SERVICE);
    inputMethodManager.hideSoftInputFromWindow(
        activity.getCurrentFocus().getWindowToken(), 0);
}
 
PREVIOUS NEXT
Tagged: #close #keyboard #android
ADD COMMENT
Topic
Name
7+2 =