A

Admin • 833.24K Points
Coach

Q. What does `ContextCompat.getColor()` do?

  • (A) Fetches a string from resources
  • (B) Returns a color from resources with backward compatibility
  • (C) Returns a drawable
  • (D) Starts a background task

Explanation by: Admin

ContextCompat.getColor() is used to retrieve a color resource that is compatible with all API levels.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.