Skip to content

Instantly share code, notes, and snippets.

@alvaro893
Last active February 8, 2016 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvaro893/0bf35140a72f4896dbb0 to your computer and use it in GitHub Desktop.
Save alvaro893/0bf35140a72f4896dbb0 to your computer and use it in GitHub Desktop.
Forces to Open the soft keyboard in Android
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