Answers for "how to find the sdk version of the project in android studio"

1

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)
}
Posted by: Guest on May-18-2020
1

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)
}
Posted by: Guest on May-18-2020

Code answers related to "how to find the sdk version of the project in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language