Skip to content

Instantly share code, notes, and snippets.

@duanhong169
Created March 27, 2013 18:05
Show Gist options
  • Save duanhong169/5256634 to your computer and use it in GitHub Desktop.
Save duanhong169/5256634 to your computer and use it in GitHub Desktop.
public static VersionedOperation () {
final int sdkVersion = Integer.parseInt(Build.VERSION.SDK);
if (sdkVersion > Build.VERSION_CODES.ECLAIR) {
// do something with new API features
} else {
// do normal
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment