I am currently using this code snippet to find the SW version in phones with recent API versions. However, this is not working for phones with old API versions.
Asked
Active
Viewed 110 times
0
-
What do you mean by "Checking software version for a phone"?? Do you want API version?? – SweetWisher ツ Nov 12 '13 at 07:01
-
no not API version. The factory phone software version for the particular phone on which the app is running. – SoulRayder Nov 12 '13 at 07:07
-
Your commands are specific to LG phones, I guess. – ecle Nov 12 '13 at 12:00
2 Answers
2
If you want to check Version of your device you can use :
android.os.Build.VERSION.SDK_INT
For further knowledge, Robby's answer will help you...

Community
- 1
- 1

SweetWisher ツ
- 7,296
- 2
- 30
- 74
0
Use Build
class to get information about the current build, extracted from system properties. http://developer.android.com/reference/android/os/Build.html

ecle
- 3,952
- 1
- 18
- 22