Question

I made the app which is optimized to support Mobile Phone. I don't want to support Nexus 10, Nexus 7, and other tablet PCs that have large screen. How can I handle that in AndroidManifest.xml?

Was it helpful?

Solution

Explicitly declare in the manifest which screen sizes your application

Syntax

<supports-screens 
android:resizeable=["true"| "false"] 
android:smallScreens=["true" | "false"] 
android:normalScreens=["true" | "false"] 
android:largeScreens=["true" | "false"] 
android:xlargeScreens=["true" | "false"] 
android:anyDensity=["true" | "false"] 
android:requiresSmallestWidthDp="integer" 
android:compatibleWidthLimitDp="integer" 
android:largestWidthLimitDp="integer"/>

In your case :

<supports-screens android:xlargeScreens="false" /> 

After this playstore will show your app to devices except xlarge screen

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top