Large bitmap for background giving OOM error
<p>I have a bitmap that I'm loading into the surfaceView that is around 75kb (give or take) </p>

<p>The code I'm using to call it or decode it is </p>

<pre><code>bmLargeImage = BitmapFactory.decodeResource(getResources(),R.drawable.campplan);
</code></pre>

<p>nothing fancy really. The size of the image is 1000x500 pix. Which load fine when I want to. Problem is I want it to be 2000x1000 which is double that size.</p>

<p>I tried the resize with this code</p>

<pre><code>bmLargeImage = Bitmap.createScaledBitmap(bmLargeImage, 2000, 1000, true);
</code></pre>

<p>but it gives me a OOM error. I tried saving the png file as a 2000x1000 pix image and again it gives the OOM exception. This is tested in an emulator so far. But I think the size should be enough to load, what am I missing?</p>

<p>Note: I want it this big cause it's a background to a game (think like farmvile or smurf's village game background) so it should be big and scrollable, yet I only manage the 1000x500 size.</p>
