I think you should be able to use android.os.Build.VERSION.SDK though I
haven't needed to use it myself yet.
This thread might also be useful:

http://groups.google.com/group/android-developers/browse_thread/thread/cbbb3cd2e960e9e/887fbc62b6367fa9

Tom

2009/4/28 [email protected] <[email protected]>

>
>
> I'm trying to product a binary that is compatible with 1.1 and 1.5,
> but i'm having trouble with the ViewSwitcher class behaving
> different.  I'd like to create a wrapper for it, but I need a way to
> programatically detect the api level at runtime.
>
>
> >
>

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

Reply via email to