I'm working around a library that might be embedded in some Android apps. This library uses Android 2.2+ features but does not mean to be something essential to the usage of the target application.
Thus I would like my lib to be optionnaly runned in target apps, only under the conditions that the environment is Android 2.2+. It would not constrain target apps to be compiled and developed for Android 2.2+ devices, e.g target apps would be compiled for Android 1.6 and the import of Android 2.2 libraries would not mess up all the compilation process.
Is there any way to achieve such goals ?