I need to create a login form with \'username\' \'password\' fields and two buttons \'login\' and \'cancel\' in my android application.
I am using an alert dialog w
You need to use PasswordTransformationMethod.getInstance() instead of new PasswordTransformationMethod().
PasswordTransformationMethod.getInstance()
new PasswordTransformationMethod()