I am using custom keyboard for some edittext fields. when I call requestFocus() in onCreate it also shows soft(default) keyboard. whereas I only need to show custom keyboard. If i hide soft keyboard programatically and try to enter field in edit text using custom keyboard than app crashes.
Asked
Active
Viewed 139 times
0
-
http://stackoverflow.com/questions/10611833/how-to-disable-keypad-popup-when-on-edittext ? – DenseCrab Apr 28 '16 at 10:55
-
paste your crash log – Janki Gadhiya Apr 28 '16 at 11:43
1 Answers
0
Before calling setContentView()
set blow code.
Keypad.this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

Jhaman Das
- 1,094
- 13
- 28

techniqez
- 135
- 1
- 9
-
-
-
-
Through xml
, programmatically you can achieve this by edittext.requestFocus().