Forum Xamarin.Android

RE:Orientation not supported for API13 and above

Dear All,

We have facing the below problems for orientation

For Handling Rotation ConfigurationChanges=Android.Content.PM.ConfigChanges.Orientation is supported only below API level 13

For API level 13 and above, the available ConfigurationChanges=Android.Content.PM.ConfigChanges.Screensize property is not available in Xamarin ? kindly let us know on how to define the property or suggest any alternative to avoid reloading of activity on orientation change?

Posts

  • rmaciasrmacias USBeta, University ✭✭✭✭✭

    Should work since API level 1. What makes you think it doesn't work above Level 13?

  • KathirVelKathirVel USMember ✭✭

    Hi,

    I have implemented the below code in main activity for orientation change when rotating the device for API Level 15.

    [Activity (Label = "MainActivity", ConfigurationChanges=Android.Content.PM.ConfigChanges.Orientation)]
        public class MainActivity: Activity
        {
        }
    

    When rotating the device ,the activity is restarted .Kindly give some suggestions on this.

Sign In or Register to comment.