Exam4Training

Which of the following attributes of the activity tag in the manifest file is used to set an activity screen to landscape orientation?

Which of the following attributes of the activity tag in the manifest file is used to set an activity screen to landscape orientation?
A . screenorientation = landscape
B . screenOrientation=”landscape”
C . android:ScreenOrientation=“landscape”
D . android:screenOrientation=”landscape”

Answer: D

Explanation:

Adding this to your manifest should force your app to landscape:

<!– Force Landscape–>

<activity

android:name=".ActivtyName"

android:screenOrientation="landscape">

</activity>

References:

http://answers.unity3d.com/questions/534216/how-force-the-app-to-landscape-in-android-with-a-m.html

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version