I'm developing an android app in eclipse. My ide shows a tip to generate this line.I added it to my code:
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
What does this code indicate? Will the app be restricted with the GINGERBREAD version alone?
Indicates that Lint should treat this type as targeting a given API level, no matter what the project target is(It just suppress the Lint error)
via Android documentation
e.g. if Lint detects that you are using something newer than your android:minSdkVersion, but up to API Level GingerBread, Lint will not complain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With