Open rafuz opened 6 years ago
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.
Your link was broken, here is the correct link: https://www.amazon.it/gp/product/B01LZNCZ3A/ref=oh_aui_detailpage_o02_s00
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.