How is this native orientation defined? Is it based on the dimensions
that the screen reports? E.g. If it reports itself to be 1024x600, it
is assumed that it is natively landscape?

I have a chinese android tablet where I am trying to port froyo to. In
this case, the screen reports itself as 1024x600. The launcher starts
in landscape mode just fine. However, it seems they have messed up the
g-sensor, as rotation is off by 90 degrees. In their own official
firmware, it seems they fixed this somehow for at least the launcher,
but some applications still get it wrong.

What would the best way to fix this, when the drivers themselves
cannot be modified (no source) ?

Bram
On Jan 17, 11:51 pm, Dianne Hackborn <[email protected]> wrote:
> It is assumed that the screen's native orientation is the default
> orientation.  That is, the default orientation is whatever get when the
> software rotation of the screen is 0.
>
> If you need to make your default orientation a rotation of the screen's
> natural frame buffer, you will need to modify PhoneWindowManager to do this.
>  And be very careful, it is easy to screw up the behavior of the overall
> platform there.
>
> I would be happy to review a change that adds a configuration parameter for
> this.
>
>
>
> On Thu, Jan 13, 2011 at 7:37 AM, Dudero <[email protected]> wrote:
> > Hello,
>
> > I have nowhere found how to set the inital screen-orientation of an
> > android-build.
> > I know that this is possible in an Android-Activtiy or directly by
> > manipulating the Android-source...
>
> > But I think it should exists a "clean-solution" like a property which
> > can be set in "init.rc"-file?
>
> > In addition it would be a nice feature if it is possible to swich the
> > orientation by using a adb-shell-command?
>
> > Greetz dudero
>
> > --
> > unsubscribe: 
> > [email protected]<android-porting%[email protected]>
> > website:http://groups.google.com/group/android-porting
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to