On Thu, Apr 7, 2011 at 4:44 AM, Amit <agrawalamit2...@gmail.com> wrote: > There are two properties avaibale to indicate version info. > android.os.Build.VERSION.RELEASE(provides string e.g. 1.6, 2.2 etc.) > > android.os.Build.VERSION_CODES(it provides int) > > Does it mean Build.VERSION.RELEASE is OS version in string form that > is provided by Build.VERSION_CODES.
No. 1.6 is not an int. Build.VERSION.RELEASE is the value that consumers see, such as 1.6, as a String. Build.VERSION.SDK_INT is the API level, such a 4. SDK_INT will be one of the values you see in Build.VERSION_CODES. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en