Does anyone know how can I check the system version (e.g. 1.0, 2.2, etc.) programatically?
1.0
2.2
Example how to use it:
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD) { // only for gingerbread and newer versions }
2.1m questions
2.1m answers
60 comments
57.0k users