OK,I'll try what you've mentioned before,Really appreciate your help!

On Aug 19, 1:03 pm, Dianne Hackborn <[email protected]> wrote:
> You are going behind the back of the parts of the system that are managing
> the orientation.  You need to do what I said before, otherwise your code
> will not work correctly in all cases.
>
>
>
>
>
> On Tue, Aug 18, 2009 at 8:54 PM, James <[email protected]> wrote:
>
> > Hi,Dianne,Here is some good news:If we pass an integer to the
> > following 'orientation ',We can rotate the screen show,But the
> > coordinate system is not remaped. That is,the (x,y) coordinate won't
> > be rotated to (y,x),May be we can do sth to fix this ? Thanks!
>
> > IActivityManager am = ActivityManagerNative.getDefault();
> > Configuration cf = am.getConfiguration();
> > cf.orientation = (orientation == 0 || orientation == 2) ? 1 : 2;
> > Surface.setOrientation(0, orientation);
> > am.updateConfiguration(cf);
>
> > On Aug 19, 9:17 am, Dianne Hackborn <[email protected]> wrote:
> > > You need to modify PhoneWindowManager to determine the screen orientation
> > in
> > > the way you want based on all of the inputs it takes into account
> > (current
> > > sensor data, current lid state, current activity stack).
>
> > > On Tue, Aug 18, 2009 at 6:04 PM, James <[email protected]> wrote:
>
> > > >   Thanks for your responce.But i'm not setting the rotation of an
> > > > activity,I'm to set the rotation for the entire system,That
> > > > means,Whatever application i launch,It will show as the rotation i've
> > > > setted,Ant way i can do this??
> > > > Thanks again!
>
> > > > James
>
> > > > On Aug 17, 1:20 pm, Dianne Hackborn <[email protected]> wrote:
> > > > > You will probably get a quicker response to regular app development
> > > > > questions over on android-developers.  Anyway, you just set the
> > requested
> > > > > orientation on your activity.  See the camera preview API demo for an
> > > > > example.
>
> > > > > On Sun, Aug 16, 2009 at 6:51 PM, James <[email protected]> wrote:
>
> > > > > > No one knows ?
>
> > > > > > On Aug 13, 5:16 pm, James <[email protected]> wrote:
> > > > > > > Hi guys:
> > > > > > >    I've played around on this for quite a few days, And tried
> > several
> > > > > > > ways to do so,But still can't achieve this goal. If anyone has
> > any
> > > > > > > idea on this,Let me known,please!
> > > > > > >    Thanks and regards!
> > > > > > > James
>
> > > > > --
> > > > > 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.
>
> > > --
> > > 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.- Hide quoted text -
>
> > > - Show quoted text -
>
> --
> 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to