I have searched a lot through the internet, to find and put together a method to make apps working on all devices.
In fact i have managed to resolve this for only 3 screen sizes: 320×480 at 160dpi…
480×854 or 480×800 at 240 dpi and Galaxy tab resolution 640×1024 360dpi.
For this to work, first you will need to put in the manifest the following code, that will allow supporting
of multiple screens:
After you’ve done this, you will need the following folders created on your res folder.
In drawable-mdpi, you will put the graphics for 320×480 sized devices.
In drawable-hdpi, you will put graphics for 480×854 or 480×800 or 640×1024.
Graphics must be optimized for 640×1024, because for 480×854, you can resize it in the folder layout-normal-hdpi, where you can control the size of the graphics.
Now in layout-normal-mdpi will be main.xml let’s say.
This will be the layout for the 320×480 devices. Here you can customize it as you wish. Nothing that you make here will not happen for other devices.
In layout-normal-hdpi will be same a main.xml
But now this screen is for 480×854 devices.
You can do here your layout as you wish. Even is called main.xml(same as above), all you make here will be displayed only on 480×854 screens.
In layout-large-hdmi you can modify and adapt the layout for the Samsung Galaxy Tab.(640×1024)
I think this is clear and helped you. If you have questions, please register and ask.