[android-developers] Controlling allowed orientations at runtime

2011-05-13 Thread John Gaby
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

Re: [android-developers] Controlling allowed orientations at runtime

2011-05-13 Thread Dianne Hackborn
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