I need to implements animations in my android application.But All version of android os does not support that animation . Now I want to make that if target device’s os support animation then some animation’s code should be executed other wise not ..
For this, I have coded as follow ,
if(Build.VERSION.SDK_INT >= 7){overridePendingTransition(R.anim.slide_left_in,R.anim.slide_left_out);}
But it will crach when activity start as it raise error while build time.
Plz give me solution if possible
Thanks in advance.