Backwards compatibility in Android
<p>I need to call a method in Android SDK v9 while maintaining compatibility with older versions.</p>

<p>The <a href="http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html" rel="nofollow">Android developer blog</a> recommends using reflection or wrapper classes, but is that all really necessary? Why can't I just do this?</p>

<pre><code>if (Build.VERSION.SDK_INT &gt;= 9)
    callNewMethod();
</code></pre>

<p>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?</p>

<p>Thanks in advance...</p>
