androidthings-mqtt-alarm-panel icon indicating copy to clipboard operation
androidthings-mqtt-alarm-panel copied to clipboard

Screen Rotation/Flipping

Open rafuz opened this issue 6 years ago • 2 comments

In my installation I am using a case for a raspberry with his lcd screen that unfortunately has the screen flipped upside down. The case is this one https://www.amazon.it/gp/product/B01LZNCZ3A/ref=oh_aui_detailpage_o02_s00

To overcome this I put this configuration line in /boot/config.txt: lcd_rotate=2

It could be useful to add the option to rotate the screen inside the application or every time I get an OTA update I have to fix again the screen orientation manually.

rafuz avatar Jul 05 '18 14:07 rafuz

I will have to check if this can be done programatically. We still must use the Android SDK to manage the screen and right not there are just two options, portrait or landscape using ActivityInfo on the Activity. The options I am using are SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_PORTRAIT. There are others, but they work with the device setting or sensors of the device. Previously we had access to ScreenManager but in Android Things 1.0 this was removed so we no longer have absolute control over the screen.

thanksmister avatar Jul 05 '18 14:07 thanksmister

Your link was broken, here is the correct link: https://www.amazon.it/gp/product/B01LZNCZ3A/ref=oh_aui_detailpage_o02_s00

thanksmister avatar Jul 05 '18 14:07 thanksmister