My problem is this. I want build an app that runs on most Android Platforms, but uses some APIs that's unavaliable in the older versions, e.g. 1.6
I have read the long discussion in https://groups.google.com/group/android-developers/browse_thread/thread/0daee1d93d1f21b3/c1f861d0a34761b8?#c1f861d0a34761b8 The mostly proposed solution to my problem was to use static final fields, but that doesn't work for me as explained in https://groups.google.com/group/android-developers/msg/c1f861d0a34761b8 I tried as below private final static String version = android.os.Build.VERSION.RELEASE; ... private void switchView() { Opening.this.startActivity(new Intent(Opening.this, Hatch.class)); /// overridePendingTransition is not avaliable until API Level5 if (!version.contains("1.6")){ overridePendingTransition(R.anim.zoom_enter, R.anim.zoom_exit); } } but I ended up with this in the LogCat window 11-15 14:20:34.079: ERROR/dalvikvm(10834): Could not find method [my package].Opening.overridePendingTransition, referenced from method [my package].Opening.switchView 11-15 14:20:34.119: ERROR/AndroidRuntime(10834): java.lang.VerifyError: [my package].Opening How do I do to get around this problem? Thanks /Mathias -- 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

