On Apr 27, 7:58 pm, "[email protected]" <[email protected]>
wrote:
> 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.

Some thoughts on wrappers:

  
http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html

It doesn't really help if you're seeing different behavior from
existing classes/methods, because the behavior of public APIs isn't
supposed to change across revisions.  Is this something you can test
for at runtime by executing ViewSwitcher code?  (It's better to go by
"has behavior X" than "is version Y" so that your code automatically
does the right thing in future releases.)

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