Fix deprecated references
- Fixed deprecated usage of
resources.getColor
- Fixed deprecated initialization of the Handler class
Resources.getColor
is deprecated in Android M. I have replaced this with ContextCompact which is part of the support library and also backward-compatible with very old Android versions. I also updated the initialization of the Handler class.