I need to check the Android version of my phone and if the version is less than 4.0.0 i should execute the following code otherwise it should not execute. How could I do it? I used this line to get the Android version.
String androidOS = Build.VERSION.RELEASE;
How could I check whether less than 4.0.0. Suggest me a solution.