开发者

Android images confusion?

I have say 30 images in my android app. And as per android's documents I should have images for all screen resolution i.e. I should have drawable, drawable-mdpi, drawble-hdpi etc.

Does this mean that I will end up having and asking the user to download 30*4=120 images, or does the android platform check before uploading and only uploads the images supported for that particular phone?

Is there any nice and easy way to开发者_JAVA百科 handle these images?


Currently you need to include all those images, if you want your app to have nice UI on all screen sizes and resolutions. You can also choose to target your app only on specific screens, and declare that in the manifest. Users with screens that don't match your requirements will not see your app on the market then. However, this is probably not what you want.

As for the future, google knows about this problem and announced that it will support creating separate .apk for different kinds of devices, so in the future, this will be the way to go for apps with big sizes. Search google for "multiple apk support" for more info.


Those are for the on device images (app icons, menu item icons, splash screen image).

It sounds like you are having your users download some additional images themselves, so why don't you download only the images needed for their specific screen resolution. That way, you can even have better control over the quality of the images, as you can go by actual screen resolution rather than by hdpi, mdpi, or ldpi.


You could dynamically get android to create images for their device from a master image.

I don't think there's an alternative, there's no way to supply a different app to a user based on their device specs, other than API version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜