Make app only work on phones

aaronk

Well-Known Member
Licensed User
Longtime User
Hello,

Just wondering if there is a way to make my app only work on small screens eg. Phones not tablets.

I want to have a different app for tablets as they are going to do different things so I want to make it not display the app in google play if they are trying to install on a tablet etc.

I have noticed in the manifest file you can put supports large screens etc but I don't know which one to put as false etc.

anyone able to help?
 

aaronk

Well-Known Member
Licensed User
Longtime User
I could do that but what happens if the tablet has telephony and the device having a 7"+ screen size?

If I set the Manifest supports-screens values would that only work when on Google play or if I go to install the apk manually would it read the Manifest file and know it doesn't support my device and not install ?
 
Upvote 0

eps

Expert
Licensed User
Longtime User
I think you need to look at a number of factors, but start by looking at the manifest.xml this should enable you to work out how to limit the App to devices with a small screen and medium screen...

However the lines become a little blurred when you get to newer phones and tablets which have similar screen resolutions.. of course most of the time the pixel density should also be taken into account.. but this is done within the App.

So large and xlarge screen definitions become a bit more difficult to determine.

I actually only make one version, but then programmatically decide what can and can't be done on a phone or tablet.. i.e. that tablets only allow landscape for instance. This isn't too difficult to do and then the landscape layouts only get displayed on tablets. The phones never know about it - because the text and on screen info. would be too small.

hth
 
Upvote 0
Top