Re: [android-developers] how to write multiple-version compatible code...

2009-11-11 Thread Mark Murphy
sdphil wrote: > i want to use -- > android.os.Build.MANUFACTURER > > but it is not available in 1.5. i went to do this then -- > public static String getMfg() { > if (compareVersion(android.os.Build.VERSION.RELEASE, "1.6") >= 0) { > return android.os.Build.MANUFACTURER; > } > return "un

[android-developers] how to write multiple-version compatible code...

2009-11-11 Thread sdphil
i want to use -- android.os.Build.MANUFACTURER but it is not available in 1.5. i went to do this then -- public static String getMfg() { if (compareVersion(android.os.Build.VERSION.RELEASE, "1.6") >= 0) { return android.os.Build.MANUFACTURER; } return "unknown"; } but that does not wor