Android Forum » Android Developer Forum » Android Developer Forum (general) » EditText.SetError() not working properly only in xperia
created on Apr 19, 2011 8:48:31 AM
We have an application in which we are using Edittext.Seterror()
to notify the user if he enter any invalid data in the edittext.we
have check it in other devices but when we tried it in sony ericsson
xperia its poping up but when we put the cursor back to the editext it
is not disappearing.so need assitance on this did anyone face the same
created on Apr 19, 2011 7:15:17 PM
— modified on Apr 19, 2011 7:17:43 PM
I moved the thread to the Developer section ..
most likley you'll have a bigger support in here.
Regarding your question, no i haven't had troubles like this in the past.
Why not simply setting the editText field to an empty String after occurence of input error....
Just like this ...
created on Apr 20, 2011 9:21:37 AM
i don't want to set my.settext(""), my problem is something like when i enter wrong password it popups a baloon windows which notofies the user ,that baloon windows is not hiding back once i go back to the edittext.
created on Apr 20, 2011 5:09:35 PM
— modified on Apr 20, 2011 5:10:09 PM
Try setting the error text to null when the editText regains focus. editText.setError(null);