There is a constant in the "Build.VERSION" class:- android.os.Build.VERSION.SDK_INT
On Oct 28, 3:03 am, 李一罡 <[email protected]> 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: [email protected] > Tel: +86-010-82173659 > QQ: 270518794 > MSN: [email protected] > Gtalk: [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

