unity3d - How to avoid building for tablet's Android -


i'm trying make build google cardboard project , want stop app being downloaded on android tablets.

i've added code below in manifest yet there still seems 1900 devices available.

any thoughts on why is?

thanks,

(had remove brackets around text)

<supports-screens android:largescreens="false" android:largestwidthlimitdp="540" android:normalscreens="true" android:requiressmallestwidthdp="360" android:smallscreens="false" android:xlargescreens="false"/> 

you should add manifest :

<compatible-screens>     <!-- small size screens -->     <screen android:screensize="small" android:screendensity="ldpi" />     <screen android:screensize="small" android:screendensity="mdpi" />     <screen android:screensize="small" android:screendensity="hdpi" />     <screen android:screensize="small" android:screendensity="xhdpi" />     <!-- normal size screens -->     <screen android:screensize="normal" android:screendensity="ldpi" />     <screen android:screensize="normal" android:screendensity="mdpi" />     <screen android:screensize="normal" android:screendensity="hdpi" />     <screen android:screensize="normal" android:screendensity="xhdpi" /> </compatible-screens> 

this should restrict app phones only. use caution, there more , more devices using xxhdpi or xxxhdpi screen density, using this, might block app on high end phones too.

more infos : android: disable application tablet


Comments