I\'m developing a mobile application based on Android with minSdkVersion=15. I would like to support both orientations for tablets and only portrait for smartph
I found the right way to solve this issue by using:
android:screenOrientation="locked"
in every activity declared in the manifest with this issue.
And keep using setRequestedOrientation() programatically to define if landscape or portrait orientation within onCreate() method,
Btw, in your GitHub project, I just changed the manifest adding locked orientation like this and it finally worked:
Hope it will help you too :)