It seems that AndroidEnvironment.UnhandledExceptionRaiser
is what you're looking for:
//that's a dirty-code example, do not use as-is! :)
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) =>
{
File.AppendAllText("tmp.txt", args.Exception.ToString());
};
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…