I am trying to start an error-reporting activty if unhandled exception detected. The problem is with exceptions thrown from main thread. Is there any way to start an activity if main thread crashed?
I am trying to start an error-reporting activty if unhandled exception detected. The problem
Share
The approach I’ve seen used for error catching in an
UncaughtExcpetionHandleris to write the crash data out to file and then start the error handlingActivitywhen the application is restarted based on the existence of the crash data file.Depending on what you want your
Activityto do, this might work for you.