My application includes a series of Activities, through which the user must proceed in a linear fashion. Let\'s say that this series of activities looks like this: A (repres
Extend Application class
import android.app.Application;
import android.util.Log;
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
Log.e("MyApplication", ex.getMessage());
}
});
}
}
Add the following line in AndroidManifest.xml file as Application attribute
android:name=".MyApplication"
Thread.setDefaultUncaughtExceptionHandler(new DefaultExceptionHandler()... );