How to set default keyboard for EditText

2.5k views Asked by At

If I have set android keyboard as default in keyboard setting and I clicked in EditText in my application then I am getting keyboard in english. But in my application there is an edittext to enter username. I need to show japanese soft keyboard. How to achieve this? I can long click on the edit text and set the input type as Japanese IME. can I do this programmetically without setting keyboard type explicitly? How to set default keyboard type for any particular EditText.

2

There are 2 answers

1
Pedantic On BEST ANSWER

Users choose their input method editors, not applications. Allowing an app to change the keyboard would be a security flaw.

0
NitZRobotKoder On

Try looking at InputType