0

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.

Developine
  • 10,367
  • 7
  • 36
  • 39

1 Answers1

0

Before calling setContentView() set blow code.

Keypad.this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
Jhaman Das
  • 1,050
  • 11
  • 26
techniqez
  • 125
  • 1
  • 9