getNaturalOrientation

Calculates the 'natural' orientation of the device, often Configuration.ORIENTATION_PORTRAIT for phones and Configuration.ORIENTATION_LANDSCAPE for tablets. NOTE: This value is fixed for the device, unlike its current orientation which changes depending on how the device is held.

Return

Either Configuration.ORIENTATION_LANDSCAPE or Configuration.ORIENTATION_PORTRAIT.

Parameters

activityContext

The context used for calculation. NOTE: As of Android 11 it MUST be an Activity's context.