How can I display a setError() only for specific amount of time?
if(editText.getText().length()==0)
editText.setError("please input text");
Can I make it disappear after some seconds?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
Use Handler, in the OnCreate method, to keep a reference back to the UI thread from Non ui thread, because as soon as we create a Thread, we get dropped of the Ui thread.. sorry for the inconvenience for the left out line in the previous post. Now it will work as u wanted