Reputation: 43
I'll appreciate any help here - I want to make my Android app be installable only on phones as it totally cannot function on tablets. How can I do that?
At the moment, I have these in my AndroidManifest.xml
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="false"
android:xlargeScreens="false"
/>
. . .
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="10"/>
When I upload the application, Market says that the app supports API versions 3 through 15+ and it can still be found on my Motorola xoom tablet. I have also changed the project build target to 10.
Upvotes: 2
Views: 5341
Reputation: 1871
Guided by what is written on dev guides you shoild configure your manifest like this:"
<manifest ... >
<compatible-screens>
<!-- all 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" />
<!-- all 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>
...
<application ... >
...
<application>
Upvotes: 3
Reputation: 9590
try using
android:maxSdkVersion=10
CAUTION: If you dont want to work any version above api level 10. This includes normal phones also like Galaxy Nexus which is coming soon. Pls check more details
Well if you want to filter based on screens 'supports-screen' won't gonna work. Here is the reason
Here is another soln and you also need to read compatible screens.
Upvotes: 1