Search code examples
androidandroid-animationbackwards-compatibility

Can I use Android animations added in API 11 and used later but support say API 8/10 devices?


Might be stupid question due to documentation mention that any API use that isn't supported by the device at runtime will throw an exception but I think worth trying ask, might be a solution for this.

I want to target minSDK 8 to say latest 16. But I see that animations have dramatically improved after 11. So, can I use animations for my project and run in previous SDK versions? This will crash the app or it just could ignore and not do what it supposed to do.

Should I take actions to overcome and say "run this cause device is supporting it"?

Thank you.


Solution

  • http://nineoldandroids.com/ is a library for using the Honeycomb (Android 3.0) animation API on all versions of the platform back to 1.0. I think it should solve all your problems :)