title: Unhandled Exception Handling
body: <p>In my MonoDroid application, when an unhandled exception occurs the application terminates without any messages. If I can reproduce the error on my local device I can debug it through Visual Studio without any problems.</p>
  
  <p>However, on remote devices I am stuck for a solution.</p>
  
  <p>I have tried the following in the Application class but it does not actually write my log file, unless I am running through the debugger in Visual Studio.</p>
  
  <pre><code>public override void OnCreate()
      {
          base.OnCreate();                                    
          AndroidEnvironment.UnhandledExceptionRaiser += new EventHandler&lt;RaiseThrowableEventArgs&gt;(AndroidEnvironment_UnhandledExceptionRaiser);
      }
  
      void AndroidEnvironment_UnhandledExceptionRaiser(object sender, RaiseThrowableEventArgs e)
      {
          // Write Log File
      }
  </code></pre>