So I am not a very experience Android programmer, so please be gentle with me :)
I am trying to create an app that uses fragements and from within one of these fragm
By accident i found a way to make your Dialog persist when device orientation changes.
This is C# xamarin code but i believe it can be very easily adapted to java as well.
private void MakeDialogPersist(Dialog dialog)
{
WindowManagerLayoutParams wmlp = new WindowManagerLayoutParams();
wmlp.CopyFrom(dialog.Window.Attributes);
dialog.Window.Attributes = wmlp;
}
I run this method after i perform dialog.Show();