bitmap size exceeds on mapview addoverlay
<p>I am adding overlay to map with some .png files. It works fine, but at sometime it throws Bitmap size exceeds VM Budget error. When this same problem occurred for adding image to listview, i solved it by applying SoftReference. But i don't know how to apply it for adding overlays in mapview. Any ideas please. Thanks</p>

<p>Adding overlay like this</p>

<pre><code>public ItemizedOverlayMarker(Drawable defaultMarker, Context context) {
    super(boundCenterBottom(defaultMarker));
    mContext = context;
}

@Override
protected OverlayItem createItem(int i) {
    return mOverlays.get(i);
}

@Override
public int size() {
    return mOverlays.size();
}
public void addOverlay(OverlayItem overlay) {
    mOverlays.add(overlay);
    populate();
}
</code></pre>

<p>Call the ItamizerOverlay like this :</p>

<pre><code>final List&lt;Overlay&gt; mapOverlaysResult = mapView.getOverlays();
Drawable drawableResult = getResources().getDrawable(R.drawable.pin_pink);
final ItemizedOverlayMarker itemizedoverlayResult = new ItemizedOverlayMarker(drawableResult, this);

for (int i = 0; i &lt; Constants.listOfPlaces.size(); i++) {

    GeoPoint geoPoint = new GeoPoint((int)(Double.parseDouble(latitude) * 1E6), (int)(Double.parseDouble(longitude) * 1E6));
    OverlayItem overlayitem = new OverlayItem(geoPoint, name, vicinity);
    itemizedoverlayResult.addOverlay(overlayitem);
                }
</code></pre>
