Mark Hansen wrote:
> I've actually created layouts for both vertical and horizontal views,
> I've had some people testing it and it turns out Android doesn't turn
> the view, I guess it has to be detected?
> 
> I was curious how to go about doing that detection.. I know I can also
> set the view with:
> 
> setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_*);
> 
> The problem I'm having is what event to trap or how to go about
> determining which way the phone is being held.

That might require use of the accelerometer. I haven't played at all in 
that area, so I don't have more specific advice.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

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

Reply via email to