I have an Android application and I want to stop this app installing in Tablet. I have searched many websites. I got some ideas and followed that. But that
We can install the android app in two ways.
Using the adb install command, No one can restrict the app installation only to tablets or phone. The , and so on in the manifest settings file is only applicable for the Google Play store filter. We can restrict the app installation to certain device by when you upload your APK at Market see All Applications > select your application > APK > Supported devices | Excluded devices.
Keep in mind that Google Play distribution might take a while. Uploading a new application by the console is not reflected immediately on your device.
It might takes a couple of hours, one might miss the right solution.
Hope this helps. Yaron
A quick and dirty way to do it would be to add to your manifest the following line:
<uses-feature android:name="android.hardware.telephony" android:required="true" />
While strictly speaking this only enforces that your app will be to devices that have voice radio, in practice it will serve your purpose, as almost no tablets have phone functionality. One notable exception however is Samsung Galaxy Note II which is a 5.5" phone, so technically it's somewhere between phone and tablet form factor.
Nobody really wants you to do that so it may be a little tricky. You can disable specific devices in Google Play's developer console but as there are thousands, it may be a long list to cover. Still, you can use the console's search for Tab, pad, tablet and nexus 7,10 and that may cover a large portion of those devices.
Another option to consider is actually setting the target sdk to a pre honeycomb level. That said, note it may though impair your app's functionality.