Under the 2.1 SDK, is there a way to test for the phone's OS version
within the app, and to enable or disable features based on this OS
version?
In other words, I'd like to do the moral equivalent of this ...
if (os_level < 1.6) {
// code goes here
}
else if (os_level < 2.1) {
// code goes here
}
else { // >= 2.1
// code goes here
}
The reason I used the words "moral equivalent" is because I know this
might not be as easy as I depicted it above, given that there are
changes to some of the classes in the different OS versions' jar
files.
However, is there some sort of way to build and deploy a single app
which can be written under the 2.1 SDK, and which is smart enough to
know which OS version it is running under, and to only enable the
functionality present in the "old" jars when being used in an earlier
OS version, but enable more advanced features when being run under the
newer OS's?
Thanks in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en