Supporting Android 1.5, features from Android 2.1 and no Reflection?
<p>I currently have an app on the market that supports Android 1.5 (SDK level 3) and up.  It also takes advantage of several features that are only present in Android 2.0 (SDK level 5) and up.  I do this using Reflection.</p>

<p>I read a post on the Android Developer Blog that talks about how to support these new features while using <strong>no</strong> Reflection, which would be amazing.
<a href="http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html" rel="nofollow">http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html</a></p>

<pre><code>&lt;uses-sdk android:minSdkVersion="3" android:targetSdkVersion="5" /&gt;
</code></pre>

<p>I have tested this out and while it works there is one huge downfall.  Currently if I try to add a SDK level 5 class, but I don't know that it's a SDK level 5 class, there is no worries.  Eclipse isnt going to find the class and I'm not going to be able to add it.</p>

<p>Using Google's recommended method does allow me to add the classes and gives me no notification that this code is targeted just to SDK level 5 users.  This opens up too big of a possibility of adding in code that would break some users without knowing.</p>

<p>Does anyone know of any plugins, options, etc that would warn me at the places I have targeted SDK level 5 to keep this from happening?</p>
