String version = Build.VERSION.RELEASE;  returns SDK version (2.0.1, 2.0, 1.6).
int apiLevel = Build.VERSION.SDK_INT; returns API Level (6, 5, 4).