You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Calls that need a specific minimum SDK should be marked with @TargetApi() to avoid Lint errors.
For example the onKeyDown() method checks for SDK version and then calls onBackPressed() if the check is successful.
onBackPressed() requires API level 5, so Lint will mark this call as an error if the project's min SDK level is below 5.
Annotate onKeyDown() with @TargetApi(5) would suppress the Lint error.
Calls that need a specific minimum SDK should be marked with @TargetApi() to avoid Lint errors.
For example the onKeyDown() method checks for SDK version and then calls onBackPressed() if the check is successful.
onBackPressed() requires API level 5, so Lint will mark this call as an error if the project's min SDK level is below 5.
Annotate onKeyDown() with @TargetApi(5) would suppress the Lint error.