Is there any way to get the API version that the phone is currently running?
Got it. Its using the getApplicationInfo() method of the Context class.
getApplicationInfo()
Context