Possible Duplicate:
Retrieving Android API version programmatically
I am trying to retrieve the current API Version of the device my Application is Running. Is there a way i can get that and Store it on a String. This needs to Work on 1.5 Version and Up. Examples would be greatly appreciated. Thank you.
You can get it by calling
Build.VERSION.SDK.From 1.6 on, you should use
Build.VERSION.SDK_INTinsteadbecause
Build.VERSION.SDKis deprecated.