Android: handle uncaught exceptions

To avoid the 'unfortunately app has stopped' dialog box, you can handle all uncaught exceptions in your app by setting custom handler. Uncaught exception Handler Paste this code in the beginning of your app. This will setup the handler. Do it only once, for example in onCreate of your fisrt activity that is displayed to … Continue reading Android: handle uncaught exceptions