Is it possible to default the screen to Portrait mode?

105 views
Skip to first unread message

Lewis Z.

unread,
Sep 18, 2009, 5:43:30 PM9/18/09
to android-porting
I have Android developement board and it doesn't have screen rotation
feature. When it boots up, it always show landscape. Is it possible to
default the screen to Portrait mode?

I do have all the BSP source code and I can flash all the images.

Thanks a lot!

Dianne Hackborn

unread,
Sep 18, 2009, 6:22:32 PM9/18/09
to android...@googlegroups.com
I believe it defaults to whatever the native orientation of your screen is.  If you want it to start out rotated, you will need to change PhoneWindowManager to implement the policy you want.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Xinyu Chen

unread,
Sep 20, 2009, 9:23:44 AM9/20/09
to android-porting
The screen rotation default value is consistent with the framebuffer
mode.
If fb mode is landscape, android show UI with landscape.

Thanks.

Lewis Z.

unread,
Sep 21, 2009, 3:48:10 PM9/21/09
to android-porting
Dianne & Xinyu, thank you for replies.

But where can I this framebuffer mode parameter so I can modify it?

Dianne Hackborn

unread,
Sep 21, 2009, 4:11:01 PM9/21/09
to android...@googlegroups.com
It's whatever your driver reports the screen size to be.  Sorry I can't help you more than that, I don't know anything about your driver.

rockie cheng

unread,
Dec 29, 2009, 2:32:29 AM12/29/09
to android...@googlegroups.com
Hi,I met the same problem,
now I could change the launcher by chaing manifest.xml:
android:screenOrientation="portrait"
But I could not change the rotation of screen lock.

Rockie

2009/9/19 Lewis Z. <lzh...@gmail.com>:

> --~--~---------~--~----~------------~-------~--~----~
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
> -~----------~----~----~----~------~----~------~--~---
>
>

Dianne Hackborn

unread,
Dec 29, 2009, 2:26:39 PM12/29/09
to android...@googlegroups.com
Change the code in the lock screen -- it is down in frameworks/policies/base/phone/...  The orientation here is set in the code, not in a manifest (the lock screen is not an activity).

--
Reply all
Reply to author
Forward
0 new messages