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,458
  • 2
  • 19
  • 31

2 Answers2

1

try this:

((EditText) findViewById(R.id.editTextReference)).setInputType(InputType.TYPE_NULL); 
bvanvelsen - ACA Group
  • 1,741
  • 1
  • 14
  • 25
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,593
  • 1
  • 33
  • 37