Tuesday, July 5, 2011

[android-developers] Re: Soft Keyboard appears when entering on an Activity

I encountered a similar problem and found with some testing that
adding:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
as the last line of the onCreate() for each class that extends
Activity did the trick. P.S. I apologize in advance if this post
shows up twice. My browser died last time when I hit submit :)

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment