0

I have a button in an activity that starts a FilePickerActivity. Everything works as expected except for the soft keyboard that appears right when the activity starts. I've already tried using the following code line but I can't use it INSIDE the FilePickerActivity because I can't modify it: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);

Is there an extra that I can put in the intent or something to tell that FilePickerActivity to NOT open the soft keyboard on start?

Thanks in advance!

Nahue
  • 320
  • 2
  • 18

2 Answers2

0

Add this line in your activity tag in manifest:

android:windowSoftInputMode="stateAlwaysHidden"

Vaibhav Agarwal
  • 975
  • 1
  • 7
  • 22
0

use android:windowSoftInputMode="stateHidden" in manifest activity tag

masoud vali
  • 1,528
  • 2
  • 18
  • 29