Log.d("=--=-=-=", getText(android.os.Build.VERSION.SDK_INT).toString());
if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){
Toast.makeText(getApplicationContext(), "Меньше", Toast.LENGTH_SHORT);
}
else{
Toast.makeText(getApplicationContext(), "Больше", Toast.LENGTH_SHORT);
}