Michael Thomas wrote:
> Sounds like you want to initially set up a sensormanager to listen to
> orientation changes
> and just clamp down the orientation to whatever the first orientation
> update shows you
> as being.

You can get the current orientation from the Configuration object, which
you can get from a Resources object, which you can get via
getResources() on a Context.

However, that is not some system-defined "default orientation". It's
just the orientation your activity is starting with. So, if I hold my
Nexus One in landscape, and turn it on, activities will be in the
landscape orientation, even though the OP's notion is that the "default
orientation" of a Nexus One is presumably portrait.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to