Reputation: 79
When Landscape Mode is deactivated in the Settings (Or Notification Bar on TouchWiz and HTC devices), how to apply it when the user rotates the device? I know it's possible to read the accelerometer sensors and write an own routine which sets it, but i bet there is an easier way and no need to reinvent the wheel.
Tips or advices are appreciated.
Thanks
Upvotes: 0
Views: 68
Reputation: 8612
There is simple way - but it was deactivated by user :)
If you have app that has only landscape orientation you should not worry about current phone orientation. If your app works in both orientations you should not switch orientation, because user specially says "I don't want orientation change!" by switching this setting off.
Upvotes: 2