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
  • 12,483
  • 8
  • 38
  • 42

1 Answers1

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