Hi Dianne,Thanks for your response,but I still don't get it.
I try to use System.getProperty("android.os.Build.VERSION.SDK"))
and new a android.os.Build object, but those ways still can't get sdk
version.
Can you tell me how to get sdk version by
using android.os.Build.VERSION.SDK?thank you very much 2009/5/19 Dianne Hackborn <[email protected]> > android.os.Build.VERSION.SDK. > > On Mon, May 18, 2009 at 10:30 PM, aby <[email protected]> wrote: > >> >> Hi, >> Can I get current SDK version (like 1.0 or 1.5)in the program code? >> I try to use the PackageInfo way like: >> >> http://groups.google.com/group/android-developers/browse_thread/thread/2512093fd268e1d/774a0f0c30bd05a3?lnk=gst&q=to+goet+sdk#774a0f0c30bd05a3 >> >> but it only can supply my application version. >> >> Thanks >> >> > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > 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 [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 -~----------~----~----~----~------~----~------~--~---

