How to handle portrait orientation for phone and both landscape and portrait for tablet using the single android apk file.Right now i am handling the orientation using the widnow's OrientationMode properties.for tabblet set all OrientationMode and for phone set Portrait only.I am not using custom manifest at all.Using the orientationMode property works fine in tablet but when i open window in landscape mode in phone application is crashed.when i try to open the window in landscape window is opened and immediately rotate to portrait and application is crashed(for phones only because set portrait orientation only).
↧