I need to display a pretty image of a map of Europe, and I want my app to, e.g. bring up a different activity, when the user clicks each country - each country on the map needs
I followed clausundercover's answer but still had problems with the consistency of the pixel color over a region. What finally worked for me is to make sure that I use a PNG image with indexed color for the mask. In my case I used the web optimized palette (216 colors) and made sure that any colors I picked were values from that palette. Once I made this change, I got the same color value over the entire region.