Change screen orientation

197 views
Skip to first unread message

Asaf Manasse

unread,
Feb 2, 2021, 6:51:01 AM2/2/21
to Android-rpi
I'm running Android 11 on RPI4 with 3.5" screen.
all running ok but I need to change the screen orientation to portrait.

I tried several ways ( build.prop , config.txt) but no lack.

I do I build the android when it fixed to portrait and no to landscape

Thank you,
Asaf

Mayank Langalia

unread,
Feb 2, 2021, 6:53:14 AM2/2/21
to Asaf Manasse, Android-rpi
show me your code


--
You received this message because you are subscribed to the Google Groups "Android-rpi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-rpi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-rpi/96dcccde-e1cf-42fa-9f43-f160df725f17n%40googlegroups.com.


--

Thanks & Regards,

Mayank Langalia

+91 9879508725 (Cell) |  Email: mayankl...@gmail.com

Asaf Manasse

unread,
Feb 2, 2021, 7:04:08 AM2/2/21
to Android-rpi
no my code ,
I just download and build the android-rpi An d tried to change oriantation.

also tried to call "setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);" in RpLauncher

Peter Yoon

unread,
Feb 4, 2021, 8:40:06 AM2/4/21
to Android-rpi
Try setting following property via PRODUCT_PROPERTY_OVERRIDES of rpi4.mk.
config.override_forced_orient=true

The code which is affected by the property : 
Reply all
Reply to author
Forward
0 new messages