2011-12-30 75 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()); 
       };