Maybe use the constants from the SDK? `Build.Version.FROYO` etc.