I know that I can set the screen layout to portrait or landscape in my activity's xml tag in the manifest to prevent the screen from rotation.
I have an app which shall run on a phone and on a tablet. On the tablet I want to have landscape and on the phone I want to have portrait mode. How can I do this configuration? (And of course when the device rotates the screen shall not).