Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to restrict application for Tablets only

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 148
    Comment on it

    Some applications are only made for tablets. So in order to restrict the application to download only in Tablets, we can use supports-screens tag inside the manifest file inside manifest tag.

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

    The above code explains the screens in two ways:-

    • It declares the screens that are traditionally not a tablet i.e. normalScreens and smallScreens which are not supported by application.
    • It declares the support of large screens which is having atleast 600dp width i.e. support for Tablet.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: