Monday, June 18, 2012

Re: [android-developers] code compatibility with different api levels

On Thu, Jun 14, 2012 at 7:12 AM, Rishabh Jain <rishabhiitd10@gmail.com> wrote:
What should I do so that my library can support both API levels at the same time. I am guessing there is some kind of annotation for that....

Use reflection and the Android APIs which tell you which version you're running on to selectively enable and disable features. There's a blog post about it - search for it.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate