Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check build version greater than android N [duplicate]

if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){...do something..}

unable to find N.how to check build version greater than android N

like image 224
Bharat Kumar Emani Avatar asked Jan 30 '23 17:01

Bharat Kumar Emani


2 Answers

if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){
// perform Opertaion
}

This Must Work. Enjoy.

like image 192
Akshat Vajpayee Avatar answered Feb 03 '23 06:02

Akshat Vajpayee


if(Build.VERSION.SDK_INT >= 24){...do something..}

maybe this works

like image 37
yash tandon Avatar answered Feb 03 '23 06:02

yash tandon