Prevent the keyboard from displaying on activity start

I think the following may work

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

I’ve used it for this sort of thing before.

Leave a Comment