Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check the system version of Android?

Does anyone know how can I check the system version (e.g. 1.0, 2.2, etc.) programatically?

like image 347
davs Avatar asked Jun 22 '10 13:06

davs


People also ask

What is the current Android version?

The Latest Version of Android is 12.0 The initial version of Android 12.0 was released on October 19, 2021, on Google's Pixel smartphones. It is also arriving on Samsung Galaxy, OnePlus, Oppo, Realme, Tecno, Vivo, Xiaomi, and other devices later this year.

What is Android 12 called?

Android 12 is code-named Snow Cone and it will come with new UI, one-hand mode - Technology News.


1 Answers

Example how to use it:

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD) {      // only for gingerbread and newer versions } 
like image 77
ATom Avatar answered Nov 10 '22 03:11

ATom