Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android:pitfalls of deleting ldpi/mdpi folders

I was wondering what are the pitfalls of deleting the ldpi/mdpi/hdpi folders on my android project? Can i just copy all the images in the drawable folder instead?

I did see the following links about UI development for android http://developer.android.com/guide/practices/ui_guidelines/icon_design.html http://developer.android.com/guide/practices/screens_support.html

thanks

PS: I 'm referring to all the images that are being used, background,icons,menus etc...

like image 383
jsp Avatar asked Oct 11 '22 13:10

jsp


1 Answers

If you want to, go for it. Although not the best practice, if your application is quite conservative in terms of graphics then this may be a reasonable approach.

PROS:

  • Smaller .apk size
  • Easier to manage images (add/edit/remove)

CONS:

  • Images may be too high res or too low res for different screen resolutions.
  • If too high, images are scaled down on the fly which eats up processing power (+ unnecessary memory consumption).
  • If too low, images will lack detail and may look bad.
  • Lower-end devices have a lower memory cap (lowest being 16MB I think) - what may seem to work on your test device may not work on another (OutOfMemoryError!).

Update

If you want a quick way to make icons for all resolutions check out: Android Asset Studio

like image 101
Che Jami Avatar answered Oct 20 '22 11:10

Che Jami