Android – Develop android application for Tablets only

By -

Problem: How do we develop Honeycomb Android application for the Tablets only?

Description:
After Android has released Honeycomb 3.0 SDK for the development of android application for Android tablets, most of android developers are confused on “how do i develop android application targets for both or for specificly for Tablets or Mobile only”.

But today Tim Bray has posted very much informative article on Android Developer blog. Thanks to him for such an informative and very much useful article Preparing for Handsets (Article for making your android application compatible for Tablets only or compatible for both Tablets and Mobile).

Now go through the solution part and also this article.

Solution:
Making your Honeycomb app for tablets only
If you don’t want your app to be used on handsets (perhaps it truly makes sense only on a large screen), add the following supports-screens declaration to your manifest:

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

This describes your app’s screen-size support in two different ways:

  • It declares that the app does not support the screen size buckets “small”, “normal”, and “large”, which are traditionally not tablets
  • It declares that the app requires a screen size with a minimum usable area that is at least 600dp wide

CEO & Co-Founder at SolGuruz® | Organiser @ GDG Ahmedabad | Top 0.1% over StackOverflow | 15+ years experienced Tech Consultant | Helping startups with Custom Software Development

Loading Facebook Comments ...
Loading Disqus Comments ...