I have a strange problem on orientation handling on Samsung Tablets.
Basically, I have this app that it is supposed to run only in Landscape if running on tablet and portrait if i’m on a phone.
To do that I check on wich device I’m, and then I use the onConfigurationChanged callback to set the right layout.
It works perfectly on the phone. But on tablet, if I’m holding it in portrait position, when launch another activity within the same app I see a flash oh the home screen (that’s not cool), so the orientation (and also the android bar) goes in portrait position, the second activity is loaded in portrait (that’s wrong) and just after a while the second activity change orientation to the right landscape position.
There is a way to simple load the second activity directly in landscape?
Thanks
Francesco
If you want to load any activity directly in landscape then mention screenOrientation directly in a particular activity inside the AndroidManifest.xml file:
this will load your activity directly in landscape orientation.