I want to automatically show the soft-keyboard when an edittext is focused (if the device does not have a physical keyboard) and i have two problems: when my activity is displayed, my edittext is focused but the keyboard is not displayed, i need to click again on it to show the keyboard (it should be displayed when my activity is displayed).. Show soft keyboard automatically when edittext receives focus posted by david chandler on may 2, 2012 i’ve been unpleasantly surprised at how difficult it is to find info on showing or hiding the android soft keyboard, so i’m putting a few code snippets out here for posterity.. Because soft_input_state_always_visible will hide the keyboard if the focus switches away from the edittext, where show_forced will keep the keyboard displayed until it is explicitly dismissed, even if the user returns to the homescreen or displays the recent apps..
I am creating a custom edittext class because i need to set some custom fonts; however now when i click on the edittext the android keyboard does not pop up anymore.... You can hide or show the soft keyboard programmatically in android by using the inputmethodmanager. you can hide and show the keyboard programmatically with the following methods. call the below methods by passing edittext, searchview or any view object in it. hiding soft keyboard. At times when app screen starts, we may need to show soft keyboard popup for the edittext, which having focus. so user don’t need to touch on the edittext to show keyboard. to show keyboard for edittext view when activity starts..