How to exclude special characters from android keypad for EditText

Use the filter for that. Here I am adding the code for filter. EditText etName = (EditText)findViewById(R.id.etName); InputFilter filter = new InputFilter() { @Override public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { for (int i = start; i < end; i++) { if (!Character.isLetterOrDigit(source.charAt(i))) { return “”; } … Read more

Android: How to make the keypad always visible?

Add android:windowSoftInputMode=”stateAlwaysVisible” to your activity in the AndroidManifest.xml file: <activity android:name=”.MainActivity” android:label=”@string/app_name” android:windowSoftInputMode=”stateAlwaysVisible” /> In my test app this shows the keyboard on starting of the application although it isn’t fixed there but can be dismissed by pressing the back button. To make sure the keyboard is always visible you might have to create your … Read more