You can look at the source of the new support lib for the most strict form
of this -- it is actually composed of a couple different libraries, the base
one builds against the lowest level API and secondary ones build against
more recent APIs to access those functions.  This gives you pretty much as
complete as possible compile-time checks for using APIs.

On Tue, Apr 12, 2011 at 3:22 PM, Mark Murphy <[email protected]>wrote:

> On Tue, Apr 12, 2011 at 5:08 PM, lbendlin <[email protected]> wrote:
> > It was also factually wrong, according to the all-knowing source of all
> > wisdom (aka Wipikedia)
> >
> > Basically, use reflection to "hide" the new function from the
> > compiler-complainer.
>
> I tend to use conditional class loading more, isolating
> version-specific code in classes that I can conditionally reference
> when it is safe to do so.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version
> 1.9.2 Available!
>
> --
> 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
>



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

Reply via email to