I want to scale images such that they fit optimally the screen size and don't consume more memory than required.
Currently I put images made for a 640 x 960 screen in hdpi folder, it looks good, but it consumes a lot more memory than necessary. A 480 x 800 device, for example, is hdpi and will load these bitmaps.
Since most hdpi devices I know are 480 x 800, my first thought would be to scale down all the images in hdpi to fit a 480 x 800 screen. But I'm not sure, since hdpi doesn't refer to only to resolution, but density.
It's confusing since the folders refer to density, but the bitmaps are just pixels, and I don't know how to assign them there...
Any help is greatly appreciated.
To give more context: The thing is that I have a bitmap animation with more than 20 bitmaps each 640 x 588 px. So, on some devices this alone will run in out of memory. The memory occupied with 640 x 588 is 1.43 mb each bitmap !. If I scale down to 480 x 441 I get 0.80 mb and that's a huge improvement. And since in a 480 x 800 device I'll not lose detail, I would scale all the tiles down.