Adding a bunch of annotations to remove all warnings for deprecated method and newApi usage