-2

what shall I write that my application didn't change orientation in case of phone turn for an angle of ninety degrees?

2 Answers2

0

Inside your AndroidManifest.xml file, you can specify the default screen orientation for each of your application's activities. Use android:screenOrientation tag with a value such as portrait or landscape. More info here. Hope this helps.

Egor
  • 38,538
  • 10
  • 111
  • 128
0

You can basically use screenOrientation tag in your activity declaration in manifest. You can set landscap or portrait depending on your requirement. Below is an example... ' '

 <activity android:name=".ActivityName"

              android:screenOrientation="portrait">
AAnkit
  • 26,788
  • 11
  • 57
  • 70