Enable android:largeHeap in Android 4, and disable it in Android 2.3
<p>Currently, I have a piece of code, which is designed to run both in Android 2.3 and 4+</p>

<p>The code will perform much better (Where it will not have OutOfMemory exception most of the time), if <code>android:largeHeap</code> is being applied in AndroidManifest.xml.</p>

<pre><code>&lt;application
    android:name=".MyApplication"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:screenOrientation="nosensor"
    android:largeHeap="true"
</code></pre>

<p>Currently, my <code>android:minSdkVersion</code> need to set to 15 instead of 10 (Android 2.3). If not, <code>android:largeHeap</code> is not allowable in AndroidManifest.xml.</p>

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

<p><strong>Within single APK, how possible I can set</strong></p>

<ul>
<li>Use <code>android:largeHeap</code> option if I were in Android 4+</li>
<li>Do not use <code>android:largeHeap</code> option if I were in Android 2.3</li>
</ul>
