I'm using Xamarin Android to develop an Android Application.
I'm trying to catch global exceptions through
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) =>
{
//WRITE TO FILE
};
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
/*
* When a background thread crashes this is the code that will be executed. You can
* recover from this.
*/
};
I'm still receiving "Unfortunately App has stopped errors" frequently on various devices. The errors are not being caught.
I suspect it is memory leaks but I'm not sure. I can't access the logcat files of the devices on which this error is being raised fairly often. I'm at my wits' end. Could anyone shed some light on the same?
On a side note, if a global exception is raised and caught, the UnhandledExceptionRaiser is interrupted in between and is not written to file (This I guess is because of Android cleaning up the process?)
0 comments:
Post a Comment