Only in tablet

My application should support landscape / portrait mode only for tablets, phones only support portrait mode. What is the best way to implement this?

The options I'm considering are:

a) using two apk files, one for phones and one for tablets. The phone will block landscape mode in the manifest

2) using one apk file. The discovery of this device is a telephone, landscape mode lock inside each action.

Any advice would be appreciated.

Hi

+7
source share
1 answer

You can use SuperClass for actions, and implement this https://stackoverflow.com/a/166269/2126 for example onCreate ().

+3
source

All Articles