Backwards compatibility in Android
===

I need to call a method in Android API v9 while maintaining compatibility with older versions.

The [Android developer blog][1] recommends using reflection or wrapper classes, but is that all really necessary? Why can't I just do this?

    if (Build.VERSION.SDK_INT >= 9)
        callNewMethod();

It seems to me this will work due to Java runtime linkage, since I am building with SDK 9. Is there anything wrong with this approach?


Thanks in advance...

  [1]: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html