Sure, just check the documentation.

http://developer.android.com/reference/android/view/WindowManager.html#getDefaultDisplay()

http://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation(int)

2011/4/25 Cris94107 <[email protected]>

> The manifest.xml files let you set sensor to determine if you want to
> render your User Interface in portrait or landscape.
>
>
> But what if you want to render in landscape only if... vertical
> resolution is > 400 pixels?
> Is there a way to determine the user interface capability dynamically
> as per the device?
>
> --
> 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

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