I've got an application that uses overridePendingTransition to do some custom animations upon transitioning from one activity to the other. This was made available in Android 2.0, but I want to make the application work on Android 1.6. I figured if I just checked that android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.DONUT, and if not, don't do the overridePendingTransition.
However, I get a VerifyError, which I assume is caused by this: VFY: Unable to resolve virtual method 346: ../../Login: overridePendingTransition (II)V
Is it not possible to use newer functionality conditionally based on the SDK version?