Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
376 views
in Technique[技术] by (71.8m points)

android manifest - Application Only for Tablets

I am create application only for tablets. Now i upload that application on market. My application support in Android 2.2 Galaxy Tab 7 and All android 3.0 version Tablets. Issues is that application can not install in mobile. when i use Android 2.2 version device and search my application than it's found and install in my device.

To avoid that i add this code in my manifest file:-

<supports-screens android:smallScreens="false" 
        android:normalScreens="false" 
            android:largeScreens="true"
        android:xlargeScreens="true" />

but till that in mobile my application show. I found some other code but this not show in my manifest file

    android:requiresSmallestWidthDp="600"
    android:compatibleWidthLimitDp="integer"
    android:largestWidthLimitDp="integer"

Thanks in Advance

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

As I just answered here: https://stackoverflow.com/a/10540882/413127 it is possible

you need a combination of what you've outlined above in your Manifest:

 <supports-screens
        android:largeScreens="true"
        android:normalScreens="false"
        android:requiresSmallestWidthDp="600"
        android:smallScreens="false"
        android:xlargeScreens="true" />

 <uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="14" />

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...