What is the best way of displaying error messages to the user?
Assume the following scenario (just for example, this question relates to common problem, when error may occur in service, in the thread etc.):
- We load some data for some screen
- Error occurs (Internet is not available, server exception, other exceptions ...)
How to show the error? Possible solutions:
- Show toasts - the simplest way but it is not the best (for many errors we'll see many toasts, even if the application works in the background)
- Show error somewhere in the screen (e.g. gmail shows 'No connection' at the bottom of the list and proposes to retry)
What is your experience? How do you show user errors? Is there some guides explaining what is the best way?