15
I was looking for this and didn't find a solution - ended up here and I figured it out myself so for anyone out there looking for this:
int SDK_INT = android.os.Build.VERSION.SDK_INT;
this returns os sdk level 7 eclair 8 froyo etc
I think this is a duplicate of my own question: ndk version at run time. Short answer: no easy way for a native application to do it (you could however run a Java app and communicate with it to get the version).