You may have noticed that when you have an EditText or ListView in your Activity, and when that activity is brought in front, the EditText is always in Focus, ie the Keyboard is always popped up.
By default the first EditText you add to the layout.xml will have at tag <requestFocus /> tag in it, even if you remove it, the EditText remains in focus.
There are lot many ways you can achieve this, but the very best and simplest way is to add android:windowSoftInputMode="stateAlwaysHidden" in the activity tag of the Manifest.xml file. When you add this attribute to the Activity, the keyboard is always hidden when the activity loads, and when you click on the TextEdit the keyboard gets into focus.

EditText auto focus now disabled for android activity
More Posts related to Android,
- Change Android Toast background color
- Maven : java.lang.ClassNotFoundException: Xmx512m
- This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView) Lint Error
- Android Alert Dialog with Checkboxes example
- Android Error Generating Final Archive - Debug Certificate Expired
- How to add Newline to text in Android TextView
- Read Text file from SD Card : Android Programming
- [FIX] AndroidRuntime: FATAL EXCEPTION: main - java.lang.RuntimeException NullPointerException
- ActivityManager Warning: Activity not started, its current task has been brought to the front
- INSTALL_FAILED_INSUFFICIENT_STORAGE Android Error
- Android Developers Bluetooth Tutorial
- java.lang.ClassNotFoundException android.support.v7.widget.Toolbar [Fix]
- Android: Save Data in local Db using Android Room
- Channel 50 SMSes received every few minutes Android Phones
- 21 Useful Android Emulator Short-cut Keyboard Keys
- Changing Android Intent Tittle using java code
- Android : No Launcher activity found! Error
- How to change TextView or EditText Text Color on Focus and on Press
- How to display Toast on Button Click : Android
- Android : Execute some code after back button is pressed
- Stop android adb service from command prompt or terminal
- [Soluiton] You already have the latest version of Android Studio installed
- Create Custom Android AlertDialog
- Android R Cannot Be Resolved To A Variable
- How to make Android EditText not editable
More Posts:
- Understanding grep command and its usage [Unix/Linux/macOS/Windows-Bash] - HowTos
- Background task activation is spurious error - Windows 10, Office 2016, Office 365 - HowTos
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar - MacOS
- Restore deleted Office 365 SharePoint group site - SharePoint
- Word count in Notepad++ - NotepadPlusPlus
- How to add or remove bookmark on a line in Notepad++ - NotepadPlusPlus
- Android Studio: Cannot perform refactoring operation - Android-Studio
- Display List of Databases in mysql Command Line - MySQL