java - How can i detect any version in my app? -
i'm create app sdk 1.6 , want to, if app running in android 3 : sth , using these code error told me honeycomb
cannot resolved or not field.
here code:
if (build.version.release == build.version_codes.honeycomb) { // anything... } else { // anything... }
for build.version_codes.honeycomb
recognized @ compile time, need have build target set api level 11 or higher. in eclipse, in android section of project properties; command-line builds, in default.properties
.
Comments
Post a Comment