Screen orientation on Raspberry Pi 3 with Android things
I find out finally how to achieve it.
Solution found there : Android Things with Rasp3 7 inch touchscreen
You have to mount the boot partition from the sdcard on your laptop and edit the /boot/config.txt
file and add the following line:
lcd_rotate=2
By adding this line both display and touchscreen will be rotated, compared to display_rotate=2
where only display is rotated and touchscreen remains upside down.
Try this:
if (Build.DEVICE.equalsIgnoreCase("rpi3"))
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE);