Large image causing NullPointerException in emulator
<p>I am having problems with the emulator crashing when drawing a large image. The crash is caused by a NullPointerException when using setBounds on my drawable (so my drawable is null for some reason).</p>

<p>The problem only occurs in the emulator, and not if I load it on to my device (HTC Desire).</p>

<p>My image is a 1080x1658 px jpg. If I specify a much smaller image the problem goes away.</p>

<p>My code looks like this:</p>

<pre><code>public class Map {

    private Drawable mapImage;

    public Map(Context context) {
        mapImage = context.getResources().getDrawable(R.drawable.north);
    }

    public void render(Canvas canvas) {
        mapImage.setBounds(0, 0, 1080, 1658);
        mapImage.draw(canvas);
    }

}
</code></pre>
