0

I am programming for a Pidion device that is running Android 2.3.7 (Gingerbread). The Pidion comes with a built in keyboard and I would like to disable the softkeyboard from opening.

Pidion

What is the best way to disable softkeyboard?

K3NN3TH
  • 1,318
  • 2
  • 16
  • 26

2 Answers2

1

try this:

((EditText) findViewById(R.id.editTextReference)).setInputType(InputType.TYPE_NULL); 
bvanvelsen
  • 1,712
  • 1
  • 14
  • 24
0

inside Activity you can do this:

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);

or inside Fragment you can just use

getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
Chris
  • 4,455
  • 1
  • 31
  • 37