Collision detection with bitmaps on SurfaceView's canvas in Android
In Android I use a SurfaceView to display a simple 2D game. The bitmaps (.png) with alpha (representing the game objects) are drawn on the canvas. Now I would like to do a simple but accurate collision detection. Checking whether these bitmaps are overlapping is quite easy. But how do I check for collisions when these bitmaps have transparent areas? My challenge is detecting whether two balls collide or not. They fill up the whole bitmap in width and height both but in all four edges, there are transparent areas of course as it's a circle in a square. What is the easiest way to detect