📅  最后修改于: 2022-03-11 15:00:55.804000             🧑  作者: Mango
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP){
// Do something for lollipop and above versions
} else{
// do something for phones running an SDK before lollipop
}