title: why does android restart my application after a call to System.exit(0)
body: <p>I have a class which extends Application. In its onCreate() I have:</p>
  
  <pre><code>    Thread.currentThread().setUncaughtExceptionHandler(
              new UncaughtExceptionHandler()
              {               
                   @Override
                   public void uncaughtException(Thread thread, Throwable ex)
                   {
                        System.exit(0);
                   }
               });
  </code></pre>
  
  <p>expecting my app to go off forever. But after System.exit(0) is called, android restarts my application as if I've launched it myself. Why?</p>
  
  <p>By the way, do you know any way to show an <strong>AlertDialog</strong> notifying the user of the uncaught exception?</p>