-1

I am having one query in drawable concept. I have images of fixed sizes and i have put them in drawable folder. I have deleted my other folders such as drawable-hdpi, mdpi, ldpi, xhdpi from eclipse project and have made the APK of my project.

My question is that will my application(generated apk) work on all the devices and tablets( i am not concerned about how the UI will look)? Or can it create ResourceNotFound Exception on some devices/tablets as there are not all drawable folders present?

learner
  • 1,095
  • 2
  • 18
  • 41
  • Hi 323go, those question does not clarify my doubt hence a new question was required. – learner Mar 25 '13 at 18:23
  • The questions shouldn't clarify it, but the answers will -- including the various links included to further reading. – 323go Mar 25 '13 at 18:24

2 Answers2

5

The folders without any qualifiers (layout, drawable, raw, values etc.) are the default folders. Android looks for each resource in them if it isn't found in the folders that qualify for that device. If you have a copy of any resource in them, you should never get a ResourceNotFound exception for that particular resource, unless the manufacturer introduces a bug into their ROM.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
0

As long as you have a drawable folder then when OS searches for the others and doesn't find them, it will defualt to the only drawable folder available.

TronicZomB
  • 8,667
  • 7
  • 35
  • 50