Android EditText setError() doesn't work as expected
I am having a problem with setError() on EditText . When an activity is opened, it checks if certain fields are empty and sets error message on them if true. However, the exclamation mark icon is only displayed in case I write some text in field and then delete it. If I lose focus on that field, the icon will disappear again. Both fields Naam and Telefonnumer have this validation. I use Android 2.2.2 SDK and the application is run on Nexus 7 with latest updates. I have Util class: public class Util { private static String TAG = "Util Class"; public static boolean editTextIsEmpty(EditText