RhinoCan
Well-Known Member
Is there any well-accepted documentation that details the best practices with regard to how to handle various kinds of errors in Android? If so, can someone kindly point me to it?
As seasoned developers know, there are many kinds of errors that an app can experience and there are many ways to handle those errors. Errors can be as minor as typos that need to be brought to the user's attention for them to correct or as major as indications that some key part of Android is not working properly. The app itself might detect a typo and simply display a Toast or Alert Dialog to the user telling them about the problem and asking the user for the correct information. Other errors might require logging to a specific log or sending notifications to someone or maybe sending emails or texts to a specific individual.
I have to believe that developers have been thinking about these issues as long as Android has existed (probably inspired by their experiences with previous environments!) but I don't know where to find their collective wisdom on error handling.
As seasoned developers know, there are many kinds of errors that an app can experience and there are many ways to handle those errors. Errors can be as minor as typos that need to be brought to the user's attention for them to correct or as major as indications that some key part of Android is not working properly. The app itself might detect a typo and simply display a Toast or Alert Dialog to the user telling them about the problem and asking the user for the correct information. Other errors might require logging to a specific log or sending notifications to someone or maybe sending emails or texts to a specific individual.
I have to believe that developers have been thinking about these issues as long as Android has existed (probably inspired by their experiences with previous environments!) but I don't know where to find their collective wisdom on error handling.
I'm currently developing and/or designing some apps for my own use but I'm giving serious thought to using them as the basis for tutorials and maybe to put in a portfolio of my work which I can show prospective employers so I'm just trying to avoid people dismissing me for using "unprofessional" techniques.