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.

On Oct 20, 12:13 am, hackbod <[EMAIL PROTECTED]> wrote:
> Use the android:screenOrientation attribute when declaring your
> manifest:
>
> http://code.google.com/android/reference/android/R.styleable.html#And...
>
> http://code.google.com/android/reference/android/R.styleable.html#And...
>
> On Oct 19, 3:23 pm, Mark Hansen <[EMAIL PROTECTED]> wrote:
>
> > I was thinking Android switched orientation automatically based on the
> > phones position but I'm finding from users this is not the case.
>
> > Anyone have some sample code on how to switch screen orientation based
> > on the position of the phone?
>
> > Thanks,
>
> > Mark
>
>
--~--~---------~--~----~------------~-------~--~----~
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