Re: [android-developers] How to retrieve Android Version info

2011-04-07 Thread lbendlin
However, Build.VERSION.SDK_INT is only available from API level 4 (1.6). If you target 1.5 devices you need to use Build.VERSION.SDK and do the int parsing manually. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

Re: [android-developers] How to retrieve Android Version info

2011-04-07 Thread Mark Murphy
On Thu, Apr 7, 2011 at 4:44 AM, Amit 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 t

[android-developers] How to retrieve Android Version info

2011-04-07 Thread Amit
Hi, 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. Thanks, A

Re: [android-developers] how to retrieve android version

2010-06-09 Thread Jose Luis Montes
thank you so much :) On Wed, Jun 9, 2010 at 9:07 PM, Mark Murphy wrote: > Jose Luis Montes wrote: > > Hello! > > > > maybe this question is too easy but I can't find the solution :S > > > > how may I know the android version in which my app is running from > > source code; i want to know if it i

Re: [android-developers] how to retrieve android version

2010-06-09 Thread Mark Murphy
Jose Luis Montes wrote: > Hello! > > maybe this question is too easy but I can't find the solution :S > > how may I know the android version in which my app is running from > source code; i want to know if it is 1.5, 1.6, 2.1 (ecclair), 2.2 (froyo). Look at android.os.Build.VERSION. -- Mark Mu

[android-developers] how to retrieve android version

2010-06-09 Thread Jose Luis Montes
Hello! maybe this question is too easy but I can't find the solution :S how may I know the android version in which my app is running from source code; i want to know if it is 1.5, 1.6, 2.1 (ecclair), 2.2 (froyo). greetings and thanks in advance! -- You received this message because you are s