I have a view, I dynamically assign the background to use SetBackgroundResource (R.drawable.led_red). This worked fine for several weeks, but suddenly it stopped working for one of the images that I use for this purpose (led_blue), although I did not change anything in the project related to these images. The image simply does not appear, even if the same code works fine with other image options to drive. This problem color also worked until ...
I tried a lot of things, it seems that if I add another image to the project, so the id (0x7f020000) of this problematic image in R.java changes to something else, it will start working again. But of course, I cannot just solve the problem with this, because if I did not find the reason for this, this may happen for other images in the future.
Also added a new added image that uses 0x7f020000, also does not work, so it looks like it is associated with this individual identifier, but I could not understand it.
This happens both on the device and on the simulator using the 2.1 SDK
Any ideas what is going on?
Thank.
source
share