-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
  • 39,695
  • 10
  • 113
  • 130
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
  • 27,299
  • 12
  • 60
  • 71