You can change the orientation when your activity is on top. When someone else is on top, you can't change what they want. The current orientation is decided based on a combination of the desires of the stack of activities, the current sensor value, the current dock status, and the specific device's core policies... and I am sure more things in the future.
On Thu, Nov 26, 2009 at 1:42 AM, GodzillaHaur <[email protected]>wrote: > Thanks, Dianne. > > How about the portrait mode or landscape mode of all systems? > For example: "HTC magic" is portrait. "Archos 5 Internet tablet" is > landscape mode. > Which stage does it decide the mode? > Is it possible to dynamically change modes between portrait and > landscape mode? > > > On Nov 26, 1:37 am, Dianne Hackborn <[email protected]> wrote: > > The built-in home screen doesn't allow itself to be changed based on the > > sensor, by design. To change this you will need to replace it with your > own > > home screen. > > > > On Wed, Nov 25, 2009 at 5:23 AM, GodzillaHaur <[email protected] > >wrote: > > > > > > > > > Dear all: > > > > > I got a question about screen orientation in Android Home screen. > > > The scenario is as following. > > > A G-sensor detects the movement on the device. > > > Then it rotates the screen. If the device is portrait mode, the system > > > sets to landscape mode. > > > With G-sensor, theres is a SensorService to detect that and do some > > > things to reach the function. > > > > > I want to know how to reach that? Is there a API or a event to do > > > that? > > > I means that hall system, not a activity!!! > > > > > Any information are highly appreciated. > > > Many thanks. > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<android-developers%[email protected]> > <android-developers%[email protected]<android-developers%[email protected]> > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > 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. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

