If an application have to support starting from android 1.6 device and onwards. The application also have to support tablets. what are the things i have to consider while creating the app. I have read How to Support Multiple Screens. I think the summary as described there is
- Explicitly declare in the manifest which screen sizes your
application supports (summary-1) - Provide different layouts for different screen sizes (summary-2)
- Provide different bitmap drawables for different screen densities(summary-3)
As I have to support all devices starting from 1.6 onwards including tablets whether I have to use <supports-screens> . Is it useful for my applicaiton? (summary-1)
I cannot create layout for different size. because the in future any device may come with some different_size. But I have to support all screen size. (summary-2)
I understood that I have to create different drawable folders to support different resolution and also to support multi-size i have to create all images as 9-patch. (summary-3)
Only I understood the use of (Provide different…) for my application. I didn’t get the use of other two points for my problem. Also a doubt here is that is it ok if i create hdpi, ldpi and mdpi drawable folder or I need to create xhdpi also?
Can anyone suggest me what are the other things i have to take into consideration If I want my app should look same and work as same in such a wide range of devices (from 1.6+ to tablets also)
You should always define
<supports-screens>in your manifest because the default values can change from one version to another.But if you want to support
xlargescreens then you’re stuck because this attribute was introduced in API level 9 (android 2.3). You have to create two different APKs, one for android versions >= 2.3 and the other for the older ones.Since it’s a common issue, android provides a nice way to publish only one application on the market even if you use multiple APKs.
However Android 1.6 represents about 1.3% of the market share right now. Are you sure you want to spend a lot of time to support this old version?