getResources().getColor() is deprecated
It looks like the best approach is to use: eg: This will choose the Marshmallow two parameter method or the pre-Marshmallow method appropriately.
It looks like the best approach is to use: eg: This will choose the Marshmallow two parameter method or the pre-Marshmallow method appropriately.