Avi kumar
Avi kumar

Reputation: 383

Universal application in android (phone and tablet)

I am developing an Universal application in android which should run on android phone and android tablet, I know the procedure to make an application for android phone but how to make for android tablet, Please guide me for this.

Thanking in advance.

Upvotes: 10

Views: 11290

Answers (2)

Andreas Rudolph
Andreas Rudolph

Reputation: 1246

I don't know if you're still looking for another answer, but I made a tool that can scale your layouts to the four different density buckets out there. If you create your layouts for one base-line density bucket, this tool can scale your layouts onto a tablet size screen:

http://onemanmobile.blogspot.com/2012/04/how-to-scale-your-android-layouts-to.html

It should take everyone very little time to make their simple Android app into a universal app for small, normal, large and x-large devices.

Upvotes: 0

Nanne
Nanne

Reputation: 64399

You should support the different screen layouts. Take a look over at the multiple screen page

It gives you, amongst explanation how to save multiple versions of files for different resolutions, als this piece of code for the manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"
        android:anyDensity="true" />
    ...
</manifest>

You can make different drawable directories etc, as explained in the link.

Upvotes: 12

Related Questions