How to change the message "x app stopped working" on Android?

Asked

Viewed 88 times

0

I needed to change this text from my app, someone knows how? depending on the smartphone/tablet model the message comes different. Thank you in advance.

1 answer

4

Daniel,

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

Treat the exception by displaying something friendlier like a Alertdialog or a Toast. If it doesn’t prevent the situation, don’t use dialogs.

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

I hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.