Log and error instead of e.printStackTrace(), please. Also, for this particular block of change, please use the same consistent code formatting that's been used in other parts of the code.