How to disable landscape mode in android?
Answer / Md.absar Ansari
To prevent your Android application from running in landscape mode, you can add the following attribute to the manifest file under the activity tag: "screenOrientation" with the value "portrait". Here's an example:n<activity android:name=".MainActivity" android:screenOrientation="portrait"/>
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the differences between a domain and a workgroup?
What is a marshmallow in android?
What is content provider?
What is the latest version of android 2019?
What is difference between serializable and parcelable ? Which is best approach in android ?
Can you list and explain the four java classes related to using sensors on the android platform?
Does asynctask create new thread in background?
What do containers hold?
Explain datepickerdialog in android?
Which of the following is not a right codename of android version?
what are the different tools in android?
Can I install exe files on android?