Android: Update to Postmortem Reports via email

With the addition of an Activity stack to my portmortem email reporter, it became apparent that relying on the garbage collector to restore the original exception handler was not an ideal solution. I have added a new method called restoreOriginalHandler() that should be called in your Activity class’s onDestroy() method.

public class MyActivity extends Activity {
    protected PostMortemReportExceptionHandler mDamageReport = new PostMortemReportExceptionHandler(this);

    protected void onCreate(Bundle savedInstanceState) {

    protected void onDestroy() {
        mDamageReport = null;

Original post, updated.

Updated code link (copied from original post):
Full Source

Leave a Reply

Your email address will not be published. Required fields are marked *