Monday, September 15, 2014

Android: Enable application only for Phones

Android: Enable application only for Phones
This post about how to enable application for only for Phones.
Add the below code in manifest before application tag

Enable only for Phones



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



Enable only for Tablets


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


Check out this may be help you

Related Posts Plugin for WordPress, Blogger...