How do I make a Canvas in Android?

I don't understand how to make a canvas in android. I've looked at a lot of tutorials, and I think I followed them correctly, but I clearly didn't as it still doesn't work. Here is the code I have for my main activity: