Now, keep in mind, this app works perfectly well, and has been published to both iTunes and Google Play app stores. After doing so, I decided to go through with the upgrade to the Unified iOS API and all that entails. I followed all the upgrade documents posted (had been updated to Forms 1.3 prior to this), and the iOS app seems to be working on my test devices.
Android, however, is crashing when I attempt the following:
WebResponse wr = await Task.Factory.FromAsync<WebResponse>( request.BeginGetResponse, request.EndGetResponse, request );
Then I get an unhandled exception with the following call stack:
0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internal 0x1 in System.Diagnostics.Debugger.Mono._UnhandledException 0x20 in object.d0380c7f-78bb-4a7a-9ca1-028c680ed18f 0x6 in System.Runtime.CompilerServices.AsyncVoidMethodBuilder.AnonymousMethod_0 0xC in Android.App.SyncContext.Post.AnonymousMethod_0 at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18,19 0x11 in Java.Lang.Thread.RunnableImplementor.Run at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36,6 0xA in Java.Lang.IRunnableInvoker.n_Run at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.Lang.IRunnable.cs:71,4 0x11 in object.d0380c7f-78bb-4a7a-9ca1-028c680ed18f
I hope that's all right, I hand copied all that from the error window.
Now, again, all this worked prior to the upgrade. But now with the latest Xamarin 3.9 and the latest Forms 1.3.4, I'm getting this error. And, the aforementioned call is in a try...catch block, so why it is saying unhandled I don't know. And also again, it works on iOS.
I don't know if this should be in the Android forum, but I figure it's a Forms app, so I'd start here...any ideas appreciated.