Not able to use new resource identifiers in Android with targetSdkVersion defined in manifest
<p>I'm developing an Android application that I'd like to be compatible with 1.5 (SDK version 4). I'm testing the application on 2.2 (SDK version 8). To do this, I'm including in the manifest file the line</p>

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

<p>I thought this would allow me to use the newest manifest elements and APIs, but I'm getting a compile error whenever I try to use them. For example, I try to define the element <code>installLocation</code> to allow the app to be installed on the SD card, but Eclipse gives me the error</p>

<blockquote>
  <p>No resource identifier found for attribute 'installLocation' in package 'android'</p>
</blockquote>

<p>Is there something else I have to do to get this to work? If I can't get this to work, what benefit is defining <code>targetSdkVersion</code>?</p>
