Device orientation (manifest) – ShiVa Engine

Device orientation (manifest)

If your game was designed in a landscape style without doing any in-ShiVa kOptionViewportRotation, you can adjust the orientation in the Android Manifest File.
In Eclipse, open your main Java File (src->YourApp.java)
Go down to line ~832 (~1000) and look for ORIENTATION via search, then comment out the line that says setRequestedOrientation:
//oThis.setRequestedOrientation ( ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ) ;
There is another one on line ~862 (~1030) for Portrait mode. Comment that out as well:
//oThis.setRequestedOrientation ( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ) ;
// TODO: restore the original orientation




Need more answers?

  • slackBanner