06/26/2022, 10:11 AM
Detecting Available Displays on an Android Device Using Kotlin As you know, some phones have external or secondary displays, for example Motorola's new foldable Razr phones, or Samsung's Z Flip 3. I was wondering if there was a way to access those displays programmatically using Kotlin, or simply just verifying their presence. The real reason I want information about this is because my Motorola Razr 2019 has an issue where the phone does not recognize the fold action, so the external display is never told to come on by the phone. I decided to write an...