Is there a way to check the API compatibility of my app for lower levels?
<p>I'm developing an Android app which will target 2.1/2.2 devices, so I have my project set up to use the 2.2 SDK (API level 8), but allow for installation on devices with at least API level 7.</p>

<p>The problem is that during my daily development, I'm not always paying close attention to which API level of the methods/classes/constants that I'm using, which makes it very easy to break code on older devices.  I have got dynamic classloading working, and as much as I dislike having a ton of extra factory classes and interfaces in my project, I'm willing to deal with that solution.  Currently, the only way I have to check an older API level is to set my project's settings to the given level, rebuild, see what breaks, and then refactor.  It's quite a pain.</p>

<p>What I would really like is the ability to scan my code and check compatibility for a given API level without changing my global project build settings.  Is there some easy way to do this?</p>
