I used to create it like this
AlertDialog.Builder b = new AlertDialog.Builder( Forms.Context );
And it worked fine. But Forms.Context is obsolete now so I changed it to
AlertDialog.Builder b = new AlertDialog.Builder( Android.App.Application.Context );
Now it crashes with
Android.Content.Res.Resources+NotFoundException: Resource ID #0x0
I tried the alternative constructor
AlertDialog.Builder b = new AlertDialog.Builder( Android.App.Application.Context, Resource.Style.Theme_AppCompat_Light );
And that crashes with
Android.Views.WindowManagerBadTokenException: Unable to add window -- token null is not for an application
So what context do I pass to AlertDialog.Builder() in XF2.5? I don't feel like installing a 3rd party library for this.