Last active
August 29, 2015 14:06
-
-
Save DavyLin/564a5e992093b54604be to your computer and use it in GitHub Desktop.
choiceADKVersion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MethodInLowSdk{ | |
public static void aMethod(); | |
}; | |
class MethodInHighSdk{ | |
public static void aMethod(); | |
} | |
void CallAMethodByVersion(){ | |
if(android.os.Build.VERSION.SDK_INT > low_sdk){ | |
MethodInHighSdk.aMethod(); | |
}else{ | |
MethodInLowSdk.aMethod(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment