Android automatically scales images packaged into res/drawable-<res> to match the actual device density (not sure about persistent caching, though).

Therefore, it's not necessary to provide all images at all resolutions. If Android's default scaling works for you in terms of quality and performance, it's enough to just place images into -hdpi (or -xhdpi) and let the framework do the rest.

Now, if those are not UI icon type images but rather large, media gallery type images, then yes, Alex's suggestion is a very good one (except I'd use "res/drawable-nodpi", to let build tools perform image optimization).

-- Kostya

08.02.2011 12:36, JAlexoid (Aleksandr Panzin) пишет:
What you can do is put all of the images in the raw directory at high
resolution. And on first start scale them and place them into cache(SD
card or app's own storage).

On 7 фев, 23:28, Johan<[email protected]>  wrote:
Hi there,

I'm working on an app which displays various images. I want to
optimize this for the various screen resolutions. The MultiResolution
(1) tutorial uses many resource qualifiers in the res folder to
display the appropriate images for the various device resolutions, but
how do you package this? I don't want to ship the images for all
devices (or do I?). I want to keep the download size as small as
possible, so I only want to package the ones for that particular
screen resolution. Or, should I forget packaging images and put the
images on-line somewhere?

Any opinions on this subject would be appreciated

(1)http://developer.android.com/resources/samples/MultiResolution/index....


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to