diff --git a/Apps/Contoso.Android.Puppet/ModulePages/CrashesFragment.cs b/Apps/Contoso.Android.Puppet/ModulePages/CrashesFragment.cs index 469f924fc..217bc43b5 100644 --- a/Apps/Contoso.Android.Puppet/ModulePages/CrashesFragment.cs +++ b/Apps/Contoso.Android.Puppet/ModulePages/CrashesFragment.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using System.Threading; using Android.Content; using Android.OS; using Android.Views; @@ -19,6 +20,7 @@ public class CrashesFragment : PageFragment private Button CrashWithNullReferenceExceptionButton; private Button CatchNullReferenceExceptionButton; private Button CrashAsyncButton; + private Button CrashDotNetThreadButton; private Button CrashSuperNotCalledButton; private Button CrashJavaFromDotNetButton; @@ -39,6 +41,7 @@ public override void OnViewCreated(View view, Bundle savedInstanceState) CrashWithNullReferenceExceptionButton = view.FindViewById(Resource.Id.crash_with_null_reference_exception) as Button; CatchNullReferenceExceptionButton = view.FindViewById(Resource.Id.catch_null_reference_exception) as Button; CrashAsyncButton = view.FindViewById(Resource.Id.crash_async) as Button; + CrashDotNetThreadButton = view.FindViewById(Resource.Id.crash_from_dotnet_thread) as Button; CrashSuperNotCalledButton = view.FindViewById(Resource.Id.crash_super_not_called) as Button; CrashJavaFromDotNetButton = view.FindViewById(Resource.Id.crash_java_from_dotnet) as Button; @@ -50,6 +53,7 @@ public override void OnViewCreated(View view, Bundle savedInstanceState) CrashWithNullReferenceExceptionButton.Click += CrashWithNullReferenceException; CatchNullReferenceExceptionButton.Click += CatchNullReferenceException; CrashAsyncButton.Click += CrashAsync; + CrashDotNetThreadButton.Click += CrashDotNetThread; CrashSuperNotCalledButton.Click += CrashSuperNotCalled; CrashJavaFromDotNetButton.Click += CrashJavaFromDotNet; @@ -123,6 +127,11 @@ async private void CrashAsync(object sender, EventArgs e) await FakeService.DoStuffInBackground(); } + private void CrashDotNetThread(object sender, EventArgs e) + { + new Thread(() => throw new Exception("oops")).Start(); + } + private void CrashSuperNotCalled(object sender, EventArgs e) { StartActivity(new Intent(Activity, typeof(CrashActivity))); diff --git a/Apps/Contoso.Android.Puppet/Properties/AndroidManifest.xml b/Apps/Contoso.Android.Puppet/Properties/AndroidManifest.xml index 56bdeabaa..79cc647d5 100644 --- a/Apps/Contoso.Android.Puppet/Properties/AndroidManifest.xml +++ b/Apps/Contoso.Android.Puppet/Properties/AndroidManifest.xml @@ -1,5 +1,5 @@ - + diff --git a/Apps/Contoso.Android.Puppet/Properties/AssemblyInfo.cs b/Apps/Contoso.Android.Puppet/Properties/AssemblyInfo.cs index 1133ae393..5256f5816 100644 --- a/Apps/Contoso.Android.Puppet/Properties/AssemblyInfo.cs +++ b/Apps/Contoso.Android.Puppet/Properties/AssemblyInfo.cs @@ -25,5 +25,5 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("0.0.0.0")] -[assembly: AssemblyFileVersion("1.5.0.0")] -[assembly: AssemblyInformationalVersion("1.5.0-SNAPSHOT")] +[assembly: AssemblyFileVersion("1.6.0.0")] +[assembly: AssemblyInformationalVersion("1.6.0-SNAPSHOT")] diff --git a/Apps/Contoso.Android.Puppet/Resources/layout/Crashes.axml b/Apps/Contoso.Android.Puppet/Resources/layout/Crashes.axml index a1f49ce21..444e2cc98 100644 --- a/Apps/Contoso.Android.Puppet/Resources/layout/Crashes.axml +++ b/Apps/Contoso.Android.Puppet/Resources/layout/Crashes.axml @@ -60,6 +60,11 @@ android:text="@string/CrashAsync" android:layout_width="match_parent" android:layout_height="wrap_content" /> +