Thanks Mark! Does this mean, for Version_Codes, RELEASE field provide string as shown in list.
Build.VERSION_CODES(int) Build.VERSION.RELEASE(String) 3. 1.5 4. 1.6 5. 2.0 6. 2.0.1 7. 2.1 8. 2.2 9. 2.3 Is there any way, RELEASE may return string other than as shown in list for given VERSION_CODES. Thanks, Amit On Apr 7, 3:51 pm, Mark Murphy <mmur...@commonsware.com> wrote: > 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/commonsguyhttp://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