How can I do this effects with android
The result
Image 1
Image 2
You can accomplishe this by using xfer modes. There is a demostration of all xfer modes in apiDemos example which comes with Android development kit.
Also you can check this example of mine: Make certain area of bitmap transparent on touch