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!
Add this line in your activity tag in manifest:
android:windowSoftInputMode="stateAlwaysHidden"