When your activity is created and displayed the first time,
softKeyboard will be shown even if user doesn't select the EditText
field.
I haven't reported this issue on Android trouble ticket system, since
I think this is an issue on manufacturer implementation (may be)
Devices we have:
Sonyericsson Xperia x10 (with Cyanogen 6) - Issue doesn't appear.
Motorola Milestone - Issue doesn't appear.
HTC Desire - Issue happens on it.
LG GX2 (T-Mobile) - Issue happens on it.
The recipe to replicate this seems to be, having a "ViewGroup" above
any EditText, will cause in certain devices, soft keyboard to appear,
when entering on an Activity.
I just would like to know if other ppl is able to replicate it, on
which devices, and if possible, what's the workaround.
On Mon, Jul 4, 2011 at 4:35 PM, fr4gus <fggar...@gmail.com> wrote: > I'm able to replicate a unusual issue with EditText. But it doesn't > happen on all devices.
> When your activity is created and displayed the first time, > softKeyboard will be shown even if user doesn't select the EditText > field.
> I haven't reported this issue on Android trouble ticket system, since > I think this is an issue on manufacturer implementation (may be)
> Devices we have: > Sonyericsson Xperia x10 (with Cyanogen 6) - Issue doesn't appear. > Motorola Milestone - Issue doesn't appear. > HTC Desire - Issue happens on it. > LG GX2 (T-Mobile) - Issue happens on it.
> The recipe to replicate this seems to be, having a "ViewGroup" above > any EditText, will cause in certain devices, soft keyboard to appear, > when entering on an Activity.
> I just would like to know if other ppl is able to replicate it, on > which devices, and if possible, what's the workaround.
> -- > 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
> When your activity is created and displayed the first time,
> softKeyboard will be shown even if user doesn't select the EditText
> field.
> I haven't reported this issue on Android trouble ticket system, since
> I think this is an issue on manufacturer implementation (may be)
> Devices we have:
> Sonyericsson Xperia x10 (with Cyanogen 6) - Issue doesn't appear.
> Motorola Milestone - Issue doesn't appear.
> HTC Desire - Issue happens on it.
> LG GX2 (T-Mobile) - Issue happens on it.
> The recipe to replicate this seems to be, having a "ViewGroup" above
> any EditText, will cause in certain devices, soft keyboard to appear,
> when entering on an Activity.
> I just would like to know if other ppl is able to replicate it, on
> which devices, and if possible, what's the workaround.
I had similar issues and with some testing found that adding:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_AL WAYS_HIDDEN);
as the last line of my onCreate() in each class that extends Activity
did the trick. Like you the issue with the soft keyboard popping up
did not seem to affect every phone in my test arsenal but adding the
line above has worked as a universal fix without any unwanted side
affects that I'm aware of.
I encountered a similar problem and found with some testing that
adding:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_AL WAYS_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 :)
> When your activity is created and displayed the first time,
> softKeyboard will be shown even if user doesn't select the EditText
> field.
> I haven't reported this issue on Android trouble ticket system, since
> I think this is an issue on manufacturer implementation (may be)
> Devices we have:
> Sonyericsson Xperia x10 (with Cyanogen 6) - Issue doesn't appear.
> Motorola Milestone - Issue doesn't appear.
> HTC Desire - Issue happens on it.
> LG GX2 (T-Mobile) - Issue happens on it.
> The recipe to replicate this seems to be, having a "ViewGroup" above
> any EditText, will cause in certain devices, soft keyboard to appear,
> when entering on an Activity.
> I just would like to know if other ppl is able to replicate it, on
> which devices, and if possible, what's the workaround.
> > When your activity is created and displayed the first time,
> > softKeyboard will be shown even if user doesn't select the EditText
> > field.
> > I haven't reported this issue on Android trouble ticket system, since
> > I think this is an issue on manufacturer implementation (may be)
> > Devices we have:
> > Sonyericsson Xperia x10 (with Cyanogen 6) - Issue doesn't appear.
> > Motorola Milestone - Issue doesn't appear.
> > HTC Desire - Issue happens on it.
> > LG GX2 (T-Mobile) - Issue happens on it.
> > The recipe to replicate this seems to be, having a "ViewGroup" above
> > any EditText, will cause in certain devices, soft keyboard to appear,
> > when entering on an Activity.
> > I just would like to know if other ppl is able to replicate it, on
> > which devices, and if possible, what's the workaround.