From the course: Android App Development: Accessibility

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Communicating meaningful error messages

Communicating meaningful error messages - Android Tutorial

From the course: Android App Development: Accessibility

Start my 1-month free trial

Communicating meaningful error messages

- [Instructor] Let's jump to our sample app where we can see some problems in practice. Open the login screen. In this login screen, the email address and the password are required fields. In this case, it is obvious that you need to provide both information for a login screen since it's a very common pattern. But if there were more fields in this case, it would make more sense to add an asterisk or the required text to the label. For this example, let's focus on the error messages. As you can see, we have an email address and a password, and if we tap login, we will see the error messages showing up. Right now, we only indicate that this is an error message by using the red color alone. We could improve this interaction by adding the error text in front of them. So let's go to Android Studio, and under the resources folder, go to values and then strings.xml file. At the very top, we have the "Login" section and the strings that it uses. At the very bottom, we have the error messages,…

Contents