Portrait/Landscape mode

by UJ » Wed, 01 Apr 2009 02:23:52 GMT


Sponsored Links
 Hello folks,

When we try to implement orientation in AP layer,
we can set "android:screenOrientation" parameter in
AndroidManifest.xml file or call "setRequestOrientation()" method of
Activity class.

Can every experts tell me when I set the
"android:screenOrientation" parameter, which process will read this
configuration, pass to where and which process will do the rotation
(maybe graphic driver?)

Please give me some tips how to trace this flow.

Thanks everybody.
UJ




--~--~---------~--~----~------------~-------~--~----~



Portrait/Landscape mode

by Jean-Baptiste Queru » Wed, 01 Apr 2009 02:34:11 GMT


 What are you trying to achieve?

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Portrait/Landscape mode

by Dianne Hackborn » Wed, 01 Apr 2009 05:26:06 GMT


 I am starting to get tired of this question. :/  You can look at
ActivityManagerService, WindowManagerService, and PhoneWindowManager (and
down in to SurfaceFlinger if desired) to see the involved code.






-- 
Dianne Hackborn
Android framework engineer
hack...@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.

--~--~---------~--~----~------------~-------~--~----~



Portrait/Landscape mode

by UJ » Wed, 01 Apr 2009 07:44:10 GMT


 Thanks your reply. =)

I want to know if I need to modified graphic driver in my new device.
I want to do display rotation on other x86 platform.
I can boot up the android OS, but I cannot rotate my application >.<

In android emulator, I find some codes in "goldfish_fb.c" seems to do
the display rotation.

So, the SurfaceFlinger will call graphic driver to do the display
rotation?





--~--~---------~--~----~------------~-------~--~----~



Portrait/Landscape mode

by Jean-Baptiste Queru » Wed, 01 Apr 2009 12:56:45 GMT


 You're in the wrong group. This question belongs in android-porting.

JBQ

2009/4/1 UJ <ujhu...@gmail.com>:





-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Gallary Scroll and click event

Good evening,

I have a Gallery view in which each item consists of a table view with
two rows of three cells. Each time someone clicks on the image in one
of these cells I would like to launch a image specific intent however
if I set an on click listener for each of the image views then the
Gallery loses its ability to scroll and if I use on item click from
the gallery I just get the table view back as the clicked view. Does
anyone know a work around?

Thanks in advance.

-- 

2. How to set product to be nosdcard

There are a lot of codes in frameworks/base/core/res/res/values/
strings.xml such as:

    <string name="permgroupdesc_storage" product="nosdcard">Access the
USB storage.</string>
    <string name="permgroupdesc_storage" product="default">Access the
SD card.</string>

But how to set the product to be nosdcard?

Thanks a lot.

-- 

3. Market Console Down

4. Google Music

5. Android Layouts Are Horrible

6. Replace ADBD on emulator

7. ListViews inside TableLayout...