.NET maui always gives the original orientation even after changing the orientation on android emulator
This is kind of silly but private void OnButtonClicked(object sender, EventArgs e) { Shell.Current.DisplayAlert("Orientaion", DeviceDisplay.Current.MainDisplayInfo.Orientation.ToString(), "OK"); } always gives "portrait" (with a phone emulator) or "landscape" (with a tablet emulator) even after I switch the orientation. It just gives the default orientation even after the emulator succesfully changes it. What am I missing ? Thank… Read More .NET maui always gives the original orientation even after changing the orientation on android emulator