I have a screen where the first field is an EditText, and it gains the focus at startup, also popups the numeric input type, which is very annoying
How can I make sure that when the activity is started the focus is not gained, and/or the input panel is not raised?
go to your application manifest file, and write this line for that activity you want to disable auto keyboard pop-up.
This is usually a mess. The first thing I try is try to steal the focus with another view via . You also have to have the focusable and focusableInTouchMode.
have not tried this nor am i near my programming computer, but I would suspect programmatically sending focus to the parent view or something of that nature could do the trick - thats more likely a workaround than a solution, but again not able to test it just a thought
To programatically not have the keyboard displayed, but the default widget still recieve focus call:
in
onResume()
or simply add
android:windowSoftInputMode="stateHidden"
in Activity tag inManifest.xml