I have an invisible image in an android app. It’s used for an image map.
The problem is, that the image is compressed while compiling, so that the image in the bin folder or in the apk is not the same than the image in the res folder. Now when you click on the image the function that detects the color of the pixel returns the wrong color.
If I copy the original image into the bin folder by hand erverything works fine.
Is there a trick to get Eclipse not to compress images while compiling?
You can put your bitmap in the res/raw folder.
From the developer docs:
You can also apparently rename your image *.jet to prevent compression.