Above answers are also correct. I just want to give a brief that there's two ways to hide the keyboard when starting the activity, from manifest.xml. eg:
<activity
..........
android:windowSoftInputMode="stateHidden"
..........
/>
or
<activity
..........
android:windowSoftInputMode="stateUnchanged"
..........
/>