[android-developers] Re: how to get sdk version in program

2009-10-28 Thread Dianne Hackborn
See android.os.Build for all your version information needs.

2009/10/27 李一罡 hit.liyig...@gmail.com

 hi ,
how can i get sdk version in my code? For example ,i need to know the
 sdk verison is 1.5 or 1.6

 --
 Best Regard!
 李一罡
 
 E-mail: hit.liyig...@gmail.com
 Tel: +86-010-82173659
 QQ: 270518794
 MSN: hyliyig...@hotmail.com
 Gtalk: hit.liyig...@gmail.com

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: how to get sdk version in program

2009-10-28 Thread Jabbslad

There is a constant in the Build.VERSION class:-

android.os.Build.VERSION.SDK_INT

On Oct 28, 3:03 am, 李一罡 hit.liyig...@gmail.com wrote:
 hi ,
how can i get sdk version in my code? For example ,i need to know the sdk
 verison is 1.5 or 1.6

 --
 Best Regard!
 李一罡
 
 E-mail: hit.liyig...@gmail.com
 Tel: +86-010-82173659
 QQ: 270518794
 MSN: hyliyig...@hotmail.com
 Gtalk: hit.liyig...@gmail.com

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---