|
|
|
@ -10,16 +10,5 @@ namespace MobileSandbox.Android |
|
|
|
[Activity(Label = "MobileSandbox.Android", Theme = "@style/MyTheme.NoActionBar", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize)] |
|
|
|
public class MainActivity : AvaloniaMainActivity<App> |
|
|
|
{ |
|
|
|
protected override void OnCreate(Bundle savedInstanceState) |
|
|
|
{ |
|
|
|
AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException; |
|
|
|
|
|
|
|
base.OnCreate(savedInstanceState); |
|
|
|
} |
|
|
|
|
|
|
|
private void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e) |
|
|
|
{ |
|
|
|
System.Diagnostics.Debug.WriteLine(e.ToString()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|