Question: Android Studio: Orientation Lock via Manifest file 1 Java file, 2 XML files (each represents the tablet/phone variation of the Java file). Change the code

Android Studio: Orientation Lock via Manifest file

1 Java file, 2 XML files (each represents the tablet/phone variation of the Java file). Change the code in the Manifest file so that it locks the phone XML file to portrait orientation only, and it locks the tablet XML file to landscape orientation only. Please post both XML and Java codes for all four following files as well as the Manifest file.

Java file: MainActivty.java

XML file (phone): activity_main..xml

XML file (tablet): activity_main..xml (sw600dp)

Manifest: Change orientation to suit the instruction.

Reference: https://www.chegg.com/homework-help/questions-and-answers/build-sentence-via-android-studio-apk-51-lollipop-download-latest-sdk-packages-instruction-q29786257

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!