I have an app which needs to close landscape mode just for normal layout and large layout has both landscape and portrait. how do I do that?
to disable landscape mode for an activity you can declare this line in manifest
<activity android:name=".YourActivity"
android:label="@string/name"
android:screenOrientation="portrait" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With