title: Android: Show toast after finishing application / activity
body: <p>I want to show a simple toast, when exiting an application. The problem is, that the toast is not shown. I assume it is because the acitivity is finished or because of <code>System.exit(0)</code>, but I don't know how to solve it. Does anyone have a tip? Thanks!!</p>
  
  <p>In my activity I have the following code:</p>
  
  <pre><code>Toast.makeText(this,"Exit application.",Toast.LENGTH_SHORT).show();
  exitApp();
  
  public void exitApp (){
    App.getInstance().exit();
    finish();
  }
  </code></pre>
  
  <p>And the mehod exit in App:</p>
  
  <pre><code>public void exit() {
     System.exit(0);
  }
  </code></pre>