For Xamarin Users:
If you extends all your activities to a BaseActivity
Just add:
this.RequestedOrientation = ScreenOrientation.Portrait;
This will resolve the problem. If you want any particular activity to be in landscape override this in OnActivityCreated
. As:
this.Activity.RequestedOrientation = ScreenOrientation.Landscape;