example/src/javaExample/java/com/bugsnag/android/example/ExampleActivity.java
public void crashWithCallback(View view) {
        RuntimeException exception = new RuntimeException("Customized Error Report");

        Bugsnag.notify(exception, new Callback() {
            @Override
            public void beforeNotify(Report report) { // modify the report
                report.getError().setMetaData(generateUserMetaData());
            }
        });
        displayToastNotification();
    }
/**
     * When sending a handled error, a callback can be registered, which allows the Error Report
     * to be modified before it is sent.
     */
When sending a handled error, a callback can be registered, which allows the Error Report
to be modified before it is sent.
When sending a handled error a callback can be registered which allows the Error Report to be modified before it is sent .
public void crashWithCallback(View view) {
        RuntimeException exception = new RuntimeException("Customized Error Report");
        Bugsnag.notify(exception, new Callback() {
            @Override
            public void beforeNotify(Report report) { 
                report.getError().setMetaData(generateUserMetaData());
            }
        });
        displayToastNotification();
    }
public void crashWithCallback ( View view ) { RuntimeException exception = new RuntimeException ( "Customized Error Report" ) ; Bugsnag . notify ( exception , new Callback ( ) { @ Override public void beforeNotify ( Report report ) { report . getError ( ) . setMetaData ( generateUserMetaData ( ) ) ; } } ) ; displayToastNotification ( ) ; }
When sending a handled error, a callback can be registered, which allows the Error Report
 to be modified before it is sent.
When sending a handled error a callback can be registered which allows the Error Report to be modified before it is sent .
// modify the report