2011-12-30 104 views

回答

8

看来AndroidEnvironment.UnhandledExceptionRaiser是你在找什么:

//that's a dirty-code example, do not use as-is! :) 
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) => 
       { 
        File.AppendAllText("tmp.txt", args.Exception.ToString()); 
       };