I know this question has been asked alot, but I tried several solutions suggested and none has worked as expected.
I have an EditText that opens the keyboard when I launch that activity, how can prevent it from launching the keyboard.
//Solutions I have tried thus far
//Solution 1
//XML
android:editable ="false" <!--is deprecated & does not work-->
//Solution 2
//XML
android:focusable="false" <!--Can no longer use the EditText -->
//Solution 3
//JAVA
editText.setinputType(InputType.TYPE_NULL); // Works but I can no longer use the edit text to add input
//Solution 4 - Similar to Solution 2
editText.setInputType(0); // Works but I can no longer use the edit text to add input
//Solution 5
//Using InputMethodManager
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(),0); //Does not work