Obtain Android Version via code

Tutorials with advanced 'difficulty' and more Lines of Code.

Obtain Android Version via code

Postby csengyee » Sun Sep 26, 2010 10:29 am

Hi all,

Is there an API that I can refer to obtain the Android version that my phone is running on via code? Thanks.
csengyee
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Jul 13, 2009 3:07 pm

Top

Re: Obtain Android Version via code

Postby csengyee » Sun Sep 26, 2010 1:07 pm

I have figured out that the android API provided a static class for checking the SDK version:

android.os.Build.VERSION.SDK_INT
csengyee
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Jul 13, 2009 3:07 pm

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests