I am able to start an activity in UncaughtExceptionHandler on API 24;however, it doesn't work on API 26. I am trying to understand why it isn't working?
Thank you
EDIT:
private Thread.UncaughtExceptionHandler _unCaughtExceptionHandler =
new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
final Intent intent = new Intent(getContext(), SomeActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
}
};