On Mon, Jun 25, 2012 at 10:05 AM, Miha <[email protected]> wrote:
> In my app, I am showing an alert dialog and in it an EditText for the
> password with code like this:
>
> _input = new EditText(BaseInfoActivity.this);
> _input.setSingleLine();
> _input.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
> _input.setTransformationMethod(PasswordTransformationMethod.getInstance());
>
> This works well for pre-ICS devices. But ICS devices show contets of the
> EditText without password transformation when in extract mode (landscape
> orientation). In portrait mode, it works fine.

Well, I can reproduce your problem. It is possible that it is related to:

http://code.google.com/p/android/issues/detail?id=20612

though that one fails on earlier devices as well.

It will only fail on devices/emulators lacking a keyboard.

I took the liberty of filing an issue on this, as I think that it is
different than 20612.

http://code.google.com/p/android/issues/detail?id=33654

> Is there an additional field for ICS devices that I could use? I am
> targeting API level 10, with minSdk set to 8, if that matters.

setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI) helps, if you can
live with that effect.

Thanks for pointing this out!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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

Reply via email to