How to show error in an EditText using setError() in Android? By James | September 13, 2012 2 Comments We will go straight to the code. This is the layout containing the EditText and the Button.