title: Closing an application programmatically with custom error message?
body: <p>I want to close my Android application with a method, but it should be shown a custom message (which I define for myself).<br>
  everything I found yet was "How to close my application" and I got more than 10 ways to close my application but I haven't found a way to set a custom message.<br>
  At the moment if my app crashes something like this appears:<br>
  <code>[APPNAME] has been stopped</code><br>
  I want something like this<br>
  <code>Congratulations! You found a bug, please submit it.</code><br>
  Is there even a way to do that? All methods I found just closed all activities or just forced an unresolveable error.</p>
  
  <p>I don't think you need some <code>code</code> from me, but if you do, tell me.<br>
  (Language should be java and javascript/jQuery should be avoided)</p>