Backwards Compatible Android/Java Code
<p>I'm writing some code that is going to be used by some partners that maintain SDKs.  The SDKs are used by developers on Android 1.5 through 2.3.7.  My code uses features that are only available on 2.2 and later.  How can I write my code so developers using the partner SDKs don't get compile errors on Android &lt; 2.2?</p>

<p>I tried using reflection and avoiding imports / declarations that used classes that weren't available before 2.2, but the code didn't work post 2.2 due to failure to dispatch to methods where I had changed the desired class type to Object.</p>
