Why?  If your app can work in portait and landscape, don't restrict it.
 It's not like landscape==tablet.  The initial tablets are somewhat
landscape oriented (but not much given the whole system bar thing), but you
can be sure there will be others that are portrait-orientated and you will
be making your app annoying for users.

On Fri, May 13, 2011 at 7:58 AM, John Gaby <[email protected]> wrote:

> I have an application which I want to behave differently depending on
> whether it is installed on and phone or tablet sized device.  On the
> phone devices, I want to support both portrait and landscape mode.
> When it is installed on a tablet device, I wish to only support
> landscape.  Now, using the manifest, I can add a line:
>
>   android:screenOrientation="landscape"
>
> to the activity, and it will force the app to remain in landscape
> mode.  However, I want to be able to set this at runtime only when I
> detect that the device is a Tablet.  Is there a way to do this?
>
> 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]
> 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

Reply via email to