I have an Activity in Android, with two elements:
Activity
EditText
ListView
When my Activity
This is the perfect and most easiest solution.I always use this in my app.
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);