Jelly Bean has come out and they have some pretty nice features. My question is that I want to target as many devices as possible, but at the same time have an app that can if possible use all the features in the highest API level.
So say for example I have this
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="16"/>
And I build my application on API 16. Is there a way to restrict certain parts of the code to say only run if you are running a device that is capable of running it? For example, If I want NFC, then only gingerbread devices and above can use the feature, else froyo down won't even see the feature.