How to change the message "The application stopped working" on Android?

0

I needed to change this text from my application, does anyone know how? depending on the model of the smartphone / tablet the message comes different. Thank you in advance.

    
asked by anonymous 06.06.2016 / 17:38

1 answer

4

Daniel,

Sorry to point this out, but never throw a pure exception to the user. This message is happening because it is just entering some catch and you are doing something like ex.printStackTrace () or because an unhandled exception is occurring.

Treat the exception by displaying something more friendly like an AlertDialog or a Toast. If this is not to deter the situation, do not use dialogues.

This is a standard Application Not Responding (ANR) message from which you can not change the format .

I hope I have helped.

    
06.06.2016 / 18:03