I have built a dealer management system app using Intersoft Crosslight ,
I have only 3 activities in it, rest all screens in the app have fragments, in which i have written the following line to restrict the screen in portrait mode :
this.Activity.RequestedOrientation = ScreenOrientation.Portrait; (in OnViewInitialized() method)
However, the individual screens are restricted in portrait mode, but when I tilt the phone(landscape mode) and then navigate from one screen(which is in portrait mode) to other screen the app crashes.
Please suggest any solution, any other approach to restrict the entire app in portrait mode is also appreciated.