I have an android application that could be installed on a phone or a tablet. However the app is not fully compatible with tablet design-wise, so it's more convenient to use it with "zoom to fill screen" mode.
In a certain process I need to report about whether the device is a tablet or not.
I've been using the method from this question.
(saving a config value in the values-sw600dp and values-xlarge folders)
BUT, when using "zoom to fill screen" mode, it's not working.
The value that's being fetched is the default one from values, and not the one stored at the "tablet-related" folders.
I also tried to retrieving the screen layout using getConfiguration().screenLayout, and in this case I'm getting SCREENLAYOUT_SIZE_NORMAL instead of SCREENLAYOUT_SIZE_XLARGE that is being retrieved when using the other mode -"stretch to fill screen".
Is there a way to know that the device running the application is a tablet even if in "zoom to fill screen" mode?