Last active
February 8, 2016 14:11
-
-
Save alvaro893/0bf35140a72f4896dbb0 to your computer and use it in GitHub Desktop.
Forces to Open the soft keyboard in Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InputMethodManager imm =(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); | |
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0); | |
/** | |
* Also you can add this to the Manifiest file: | |
* android:windowSoftInputMode="stateVisible" | |
* inside of the <activity> you want | |
* / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment