nerdexam
CompTIA

220-802 · Question #317

A user launches a software application on their Android tablet device. Once the software has loaded, the user reports that when turning the tablet to work the application in landscape mode, the…

The correct answer is C. The application was not developed to react to changes to the gyroscope. When an Android app fails to rotate into landscape mode, the most likely cause is that the application was coded without implementing orientation-change handlers tied to the device's motion sensors.

Mobile devices

Question

A user launches a software application on their Android tablet device. Once the software has loaded, the user reports that when turning the tablet to work the application in landscape mode, the software does not automatically adjust to landscape mode. Which of the following is the cause of the issue?

Options

  • AThe auto-adjust setting is not enabled in the operating system.
  • BThe tablet is running low on power and disabled landscape mode.
  • CThe application was not developed to react to changes to the gyroscope.
  • DThe user did not switch the tablet to landscape mode.

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    5% (2)
  • C
    70% (31)
  • D
    18% (8)

Why each option

When an Android app fails to rotate into landscape mode, the most likely cause is that the application was coded without implementing orientation-change handlers tied to the device's motion sensors.

AThe auto-adjust setting is not enabled in the operating system.

If the OS-level auto-rotate setting were disabled, no applications would rotate - since other apps presumably work, the OS setting is not the specific cause.

BThe tablet is running low on power and disabled landscape mode.

Low battery does not disable landscape mode as a standard Android power-saving behavior.

CThe application was not developed to react to changes to the gyroscope.Correct

Android apps must explicitly handle orientation changes by listening for events from the accelerometer and gyroscope sensors and calling the appropriate layout resources for portrait and landscape modes. If a developer did not implement this logic, the app ignores sensor input and remains in its default orientation regardless of how the device is held. This is an application development limitation, not an OS or hardware failure.

DThe user did not switch the tablet to landscape mode.

On Android, orientation change is automatic when auto-rotate is enabled; the user does not manually switch to landscape mode.

Concept tested: Android app orientation change and sensor handling

Source: https://developer.android.com/guide/topics/sensors/sensors_overview

Topics

#gyroscope#landscape mode#Android#screen orientation

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice