latest version of android sdk code example

Example 1: install android sdk

Android SDK is bundled with Android Studio
(this is the easiest way to install and use the SDK)
https://developer.android.com/studio

Or you can install it seperately
https://developer.android.com/studio#command-tools

Example 2: android get sdk version

if(android.os.Build.VERSION.SDK_INT ==  android.os.Build.VERSION_CODES.LOLLIPOP){
	// Code For Android Version higher equal to LOLLIPOP(21)
} else if(android.os.Build.VERSION.SDK_INT > 21){
	// Code For Android Version higher than LOLLIPOP(21)
} else{
	// Code For Android Version lower than LOLLIPOP(21)
}