Replace API usage on newer androids.