1

I have a single activity class and it has a two EditTexts on the screen. When the activity launches the keyboard launches with it. Why is this? I did not request enter anything yet into the edit box. Why does it do this? And how can I get rid of this behavior?

Androider
  • 21,125
  • 36
  • 99
  • 158

1 Answers1

3

Try setting your stateHidden in the manifest file for the activity:

http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

and this might be helpful:

How to keep soft keyboard from opening on activity launch in Android?

Community
  • 1
  • 1
Alan Moore
  • 6,525
  • 6
  • 55
  • 68
  • 1
    Yes, needs to have stateHidden set as outlined plus this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); set in the create method. – Androider Sep 21 '11 at 21:30