What you want to do is called a
Bit Blit[
^]. You need to have three images - the canvas, sprite and mask.
The general approach is to load up the sprite and mask into memory and then apply them to the canvas image whenever the sprite moves.
Java provides the
ImageIcon[
^] class that takes a lot of the pain out of it for you; usage
here[
^]. However if this woprks in Android, I do not know.