I had to change in your code, because you are using so many deprecated methods...
The thing I had to change to let your code work the way you want it to is "Creating the drawingColor object and using it in the paint method"